From ae75e85f059b066cdc8a157f0df2cdef76ef671c Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 11 Dec 2021 00:15:25 +0000 Subject: [PATCH] Experiments with ccache, enable LTO for win32 build --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 33aa531..c597bb4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,6 +71,7 @@ jobs: LDFLAGS: -static-libgcc -static-libstdc++ PKG_CONFIG_PATH: /usr/lib/arm-linux-gnueabihf/pkgconfig run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:${PATH}" make features make WITH_LTO=true -j $(nproc) - name: Set sha8 @@ -125,6 +126,9 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive + - name: Set up ccache + uses: hendrikmuhs/ccache-action@v1 + key: linux-x86_64 - name: Set up dependencies run: | sudo apt-get update -qq @@ -133,6 +137,7 @@ jobs: env: LDFLAGS: -static-libgcc -static-libstdc++ run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:${PATH}" make features make WITH_LTO=true -j $(nproc) - name: Set sha8 @@ -215,12 +220,16 @@ jobs: run: | sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/* sudo xcode-select -s "/Applications/Xcode_12.3.app" + - name: Set up ccache + uses: hendrikmuhs/ccache-action@v1 + key: macOS-universal - name: Build macOS universal env: CFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2 CXXFLAGS: -arch x86_64 -arch arm64 -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_12 -mmacosx-version-min=10.12 -mtune=generic -msse -msse2 LDFLAGS: -arch x86_64 -arch arm64 -mmacosx-version-min=10.12 run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:${PATH}" make features make NOOPT=true WITH_LTO=true -j $(sysctl -n hw.logicalcpu) ./dpf/utils/package-osx-bundles.sh @@ -256,7 +265,7 @@ jobs: WINEDLLOVERRIDES: "mscoree,mshtml=" run: | make features - make -j $(nproc) + make WITH_LTO=true -j $(nproc) - name: Set sha8 id: slug run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"