Skip to content

Commit d0bfe80

Browse files
committed
fix caching
1 parent 8251d84 commit d0bfe80

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build-template.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,12 @@ jobs:
127127
[ -d build ] || mkdir build
128128
cd build
129129
# arguments passed to `cmake`
130-
# this also enables githash embedding into stage 1 library
131-
OPTIONS=(-DCHECK_OLEAN_VERSION=ON)
132-
OPTIONS+=(-DLEAN_EXTRA_MAKE_OPTS=-DwarningAsError=true)
130+
OPTIONS=(-DLEAN_EXTRA_MAKE_OPTS=-DwarningAsError=true)
131+
if [[ -n '${{ matrix.release }}' ]]; then
132+
# this also enables githash embedding into stage 1 library, which prohibits reusing
133+
# `.olean`s across commits, so we don't do it in the fast non-release CI
134+
OPTIONS+=(-DCHECK_OLEAN_VERSION=ON)
135+
fi
133136
if [[ -n '${{ matrix.cross_target }}' ]]; then
134137
# used by `prepare-llvm`
135138
export EXTRA_FLAGS=--target=${{ matrix.cross_target }}

0 commit comments

Comments
 (0)