Use ccache in Mac CI builds

Install it using the same action we use for Unix builds and put the
directory containing its wrappers in the PATH.

Note that we need to do it after adding Homebrew directory to the PATH
because it isn't there by default on our self-hosted runner even if it
is on GitHub Actions ones.
This commit is contained in:
Vadim Zeitlin
2025-05-09 18:17:19 +02:00
parent cecd67500e
commit b68a9da592

View File

@@ -151,6 +151,13 @@ jobs:
fi fi
echo "wxMAKEFILE_CXXFLAGS=$wxMAKEFILE_CXXFLAGS $error_opts" >> $GITHUB_ENV echo "wxMAKEFILE_CXXFLAGS=$wxMAKEFILE_CXXFLAGS $error_opts" >> $GITHUB_ENV
echo "PATH=/opt/homebrew/bin:/opt/homebrew/opt/ccache/libexec:$PATH" >> $GITHUB_ENV
- name: Install CCache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ matrix.name }}
- name: Before install - name: Before install
run: | run: |
./build/tools/before_install.sh ./build/tools/before_install.sh