From 4343dbd1f9bb971c979c3e6ba40c1a19bfcfefe6 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 6 Feb 2022 15:20:03 -0700 Subject: [PATCH] .github: Zero ccache stats, don't clean manually --- .github/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45034599ed..f262a4b11f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: -e CCACHE_MAXSIZE=512M \ -u $(id -u):$(id -g) \ $DOCKER_IMAGE_NAME \ - bash -c "./build.sh -p win64-cross ${{ matrix.build_param }} && ccache -sc" + bash -c "ccache -z; ./build.sh -p win64-cross ${{ matrix.build_param }} && ccache -s" cd dist zip -r ../${{ matrix.artifact_filename }} * - name: Upload build artifact @@ -138,6 +138,7 @@ jobs: export CCACHE_MAXSIZE=512M export PATH="/usr/lib/ccache:$PATH" export XEMU_BUILD_OPTIONS="${{ matrix.build_param }} --extra-cflags='-fuse-ld=gold'" + ccache -z # XXX: dpkg-genbuildinfo takes two minutes on GH runners. Nuke it for now. sudo rm /usr/bin/dpkg-genbuildinfo @@ -152,7 +153,7 @@ jobs: tar -czvf ${{ matrix.artifact_filename }} --transform "s#^dist#xemu#" dist echo -e "\n\nCompiler Cache Stats:" - ccache -s -c + ccache -s - name: Upload build artifact uses: actions/upload-artifact@v2 with: @@ -217,9 +218,10 @@ jobs: export CCACHE_DIR=/tmp/xemu-ccache export CCACHE_MAXSIZE=512M export PATH="/usr/local/opt/ccache/libexec:$PATH" + ccache -z ./build.sh ${{ matrix.build_param }} echo -e "\nCompiler Cache Stats:" - ccache -s -c + ccache -s pushd dist zip -r ../${{ matrix.artifact_filename }} * popd