Skip to content

Commit 10af76c

Browse files
committed
ci: twister: Add --specs to ccache ignore option list
This commit adds the compiler `--specs=*` flag to the ccache ignore option list because ccache is unable to resolve the toolchain-provided specs file path and will consider source files to be uncacheable if it is unable to read the specified specs file. Note that adding `--specs=*` to the ignore option list is not a problem because it is unlikely for the content of the toolchain libc spec file to change without the compiler executable itself changing. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 0b1d134 commit 10af76c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/twister.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ jobs:
146146
env:
147147
CCACHE_DIR: /node-cache/ccache-zephyr
148148
CCACHE_REMOTE_STORAGE: "redis://cache-*.keydb-cache.svc.cluster.local|shards=1,2,3"
149+
# `--specs` is ignored because ccache is unable to resovle the toolchain specs file path.
150+
CCACHE_IGNOREOPTIONS: '--specs=*'
149151
BSIM_OUT_PATH: /opt/bsim/
150152
BSIM_COMPONENTS_PATH: /opt/bsim/components
151153
TWISTER_COMMON: ' --force-color --inline-logs -v -N -M --retry-failed 3 '

0 commit comments

Comments
 (0)