From ecbcbdc9450d3d4dd0e799c8554139df89320ee7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 29 Mar 2022 20:11:06 +0200 Subject: [PATCH] Use ccache in MSW cross build CI workflows too This should hopefully help to speed up this build as well. Unfortunately we can't easily use ccache for the Mac builds because this requires having brew installed and we don't have it currently. We probably can use it for CMake workflow but this probably requires some arcane way of configuring CMake to use ccache that I'm not aware about and would need to be done by someone else. --- .github/workflows/ci_msw_cross.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci_msw_cross.yml b/.github/workflows/ci_msw_cross.yml index 05d3193f9a..b7a1d0d948 100644 --- a/.github/workflows/ci_msw_cross.yml +++ b/.github/workflows/ci_msw_cross.yml @@ -130,6 +130,11 @@ jobs: with: submodules: 'recursive' + - name: Install CCache + uses: hendrikmuhs/ccache-action@v1.2.1 + with: + key: ${{ matrix.name }} + - name: System and environment setup run: | normal_uid=`id --user` @@ -149,6 +154,8 @@ jobs: echo "wxMAKEFILE_ERROR_CXXFLAGS=-Werror -Wno-error=cpp" >> $GITHUB_ENV + echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV + - name: Configure run: | ./configure --host=${HOST_TRIPLET} --disable-sys-libs --disable-optimise --disable-debug_info $wxCONFIGURE_FLAGS || rc=$?