Skip to content

Commit 3f80650

Browse files
committed
cache
Signed-off-by: Anas Nashif <[email protected]>
1 parent f519ff7 commit 3f80650

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/twister.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,23 @@ jobs:
130130
export ZEPHYR_BASE=${PWD}
131131
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
132132
python3 ./scripts/twister --cmake-only -T samples/synchronization/ --outdir filter_cache
133+
cd filter_cache
134+
for d in `ls -1`; do
135+
mkdir -p cache/${d};
136+
test -f $d/samples/synchronization/sample.kernel.synchronization/zephyr/.config && \
137+
cp $d/samples/synchronization/sample.kernel.synchronization/zephyr/.config cache/${d} && \
138+
cp $d/samples/synchronization/sample.kernel.synchronization/zephyr/edt.pickle cache/${d} && \
139+
cp $d/samples/synchronization/sample.kernel.synchronization/CMakeCache.txt cache/${d};
140+
done
141+
mv cache ../twister_cache
133142
- name: Upload Filter Cache
134143
if: always()
135144
uses: actions/upload-artifact@v4
136145
with:
137146
name: Filter Cache
138147
if-no-files-found: ignore
139148
path: |
140-
filter_cache
149+
twister_cache
141150
142151
twister-build:
143152
runs-on:

0 commit comments

Comments
 (0)