Skip to content

Commit

Permalink
add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed Oct 17, 2024
1 parent 5075db0 commit 9bddec0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,27 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build container
run: docker build -t $imageName .

- uses: actions/cache@v4
with:
path: .
key: ${{ matrix.test.type }}

- name: Prepare
working-directory: ./testdemos_files
run: rsync -a deps/${{ matrix.test.type }}/* .

- name: Build container
run: docker build -t $imageName .

- name: Run test
env:
demo: ${{ matrix.test.file }}
desc: ${{ matrix.test.desc }}
run: |
docker run \
-t $imageName \
--env demo \
--env desc \
-t $imageName \
./runTest.sh
build:
Expand Down

0 comments on commit 9bddec0

Please sign in to comment.