Skip to content

Commit 4da2dc5

Browse files
committed
ci: enable test assets and cache them
1 parent d31c687 commit 4da2dc5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,21 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25+
- name: Cache test assets
26+
uses: actions/cache@v4
27+
with:
28+
path: build/teaklite2_tests_result.bin
29+
enableCrossOsArchive: true
30+
key: 'baffcd4f805a7480d969401792443a34aa39f813b4f0ae49c6365f1d1f3ce120'
31+
32+
- name: Download test assets
33+
run: |
34+
git lfs pull --exclude='' --include='*'
35+
mkdir -p build
36+
mv src/test_verifier/data/teaklite2_tests_result.bin build/teaklite2_tests_result.bin
37+
2538
- name: Configure
26-
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug
39+
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug -DTEAKRA_RUN_TESTS=ON -DTEAKRA_TEST_ASSETS_DIR="$PWD/build"
2740

2841
- name: Build
2942
run: cmake --build build --config Debug --parallel

0 commit comments

Comments
 (0)