Skip to content

Commit

Permalink
ci: Set CCACHE_SLOPPINESS as required for using PCH
Browse files Browse the repository at this point in the history
While the solution of setting CCACHE_SLOPPINESS in the makefiles seems
to work locally, the CI has been reporting high miss rates since the
PCH patch landed. Possibly the CI environment has CCACHE_SLOPPINESS set
to the empty string, which prevents Make ?= to apply.
  • Loading branch information
gezalore committed Oct 21, 2023
1 parent cbc2f9e commit 847a689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:
CCACHE_COMPRESS: 1
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_LIMIT_MULTIPLE: 0.95
CCACHE_SLOPPINESS: pch_defines,time_macros

defaults:
run:
Expand Down
3 changes: 3 additions & 0 deletions ci/ci-script.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ if [ "$CI_BUILD_STAGE_NAME" = "build" ]; then
autoconf
./configure --enable-longtests --enable-ccwarn ${CI_M32:+--enable-m32}
ccache -z
ccache -p
export CCACHE_LOGFILE=$PWD/ccache.log
"$MAKE" -j "$NPROC" -k
ccache -s
cat $PWD/ccache.log
if [ "$CI_OS_NAME" = "osx" ]; then
file bin/verilator_bin
file bin/verilator_bin_dbg
Expand Down

0 comments on commit 847a689

Please sign in to comment.