Merge branch 'ci-ccache'

Enable use of ccache for Unix CI builds.

See https://github.com/wxWidgets/wxWidgets/pull/2571
This commit is contained in:
Vadim Zeitlin
2021-11-12 17:03:13 +01:00

View File

@@ -111,13 +111,20 @@ jobs:
with:
submodules: 'recursive'
- name: Set up build system
- name: Install CCache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.name }}
- name: Set up build environment
run: |
echo LD_LIBRARY_PATH=`pwd`/lib >> $GITHUB_ENV
wxPROC_COUNT=`./build/tools/proc_count.sh`
echo wxBUILD_ARGS=-j$wxPROC_COUNT >> $GITHUB_ENV
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
# Setting this variable suppresses "Error retrieving accessibility bus address"
# messages from WebKit tests that we're not interested in.
echo NO_AT_BRIDGE=1 >> $GITHUB_ENV
@@ -155,6 +162,20 @@ jobs:
./build/tools/before_install.sh
- name: Show build environment
run: |
echo "Environment:"
env | sort
echo
echo "Compiler version:"
${CXX-g++} --version
echo
echo "ccache version:"
ccache --version
echo
- name: Configuring
run: |
wxCONFIGURE_OPTIONS="--disable-optimise $wxCONFIGURE_FLAGS"