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 29e8224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ env:
CCACHE_COMPRESS: 1
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_LIMIT_MULTIPLE: 0.95
CCACHE_SLOPPINESS: pch_defines,time_macros
CCACHE_LOGFILE: ccache.log

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

0 comments on commit 29e8224

Please sign in to comment.