Skip to content

Commit de8b49e

Browse files
committed
Caching
1 parent 7b41e8e commit de8b49e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build_runtime_images.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,20 @@ jobs:
5151
--build-arg OPENCL_PLATFORM=${{ matrix.opencl }} \
5252
--build-arg VIRTUALGL=${{ matrix.vgl }}
5353
54+
- name: Cache test data
55+
id: cache-test-dataset
56+
uses: actions/cache@v4
57+
with:
58+
path: ~/FAST/data/
59+
key: test-dataset
60+
enableCrossOsArchive: true
61+
5462
- name: Test
5563
run: |
5664
if [ "${{ matrix.opencl }}" = "intel" ]; then
57-
docker run --rm --device=/dev/dri $IMAGE_NAME
65+
docker run --rm -v ~/FAST/data/:/root/FAST/data/:ro --device=/dev/dri $IMAGE_NAME
5866
else
59-
docker run --rm $IMAGE_NAME
67+
docker run --rm -v ~/FAST/data/:/root/FAST/data/:ro $IMAGE_NAME
6068
fi
6169
6270
- name: Save docker image to file

0 commit comments

Comments
 (0)