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.
This commit is contained in:
Vadim Zeitlin
2022-03-29 20:11:06 +02:00
parent 54f3264886
commit ecbcbdc945

View File

@@ -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=$?