Skip to content

Commit a840d7c

Browse files
author
Samat Gaynutdinov
committed
refactor: artifact download/upload instead of cache
1 parent 8369675 commit a840d7c

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

.github/workflows/build-utbot.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,18 @@ jobs:
120120
chmod +x docker/action-scripts/build-utbot.sh
121121
./docker/action-scripts/build-utbot.sh
122122
123-
- name: Cache generated tests
124-
id: cache-generated-tests
125-
uses: actions/cache@v3
126-
with:
127-
path: |
128-
./integration-tests/c-example
129-
key: key
130-
131123
- name: Generate tests
132124
if: steps.cache-generated-tests.outputs.cache-hit != 'true'
133125
run: |
134126
chmod +x docker/action-scripts/generate-tests.sh
135127
./docker/action-scripts/generate-tests.sh
136128
129+
- name: Upload generated tests for next job
130+
uses: actions/upload-artifact@v3
131+
with:
132+
name: project
133+
path: ./integration-tests/c-example
134+
137135
build-portable-container:
138136
needs: build-utbot-and-generate-test
139137
runs-on: ubuntu-latest
@@ -150,20 +148,12 @@ jobs:
150148
run: |
151149
docker build . --file docker/Dockerfile_portable
152150
153-
154-
- name: Restore generated tests
155-
id: cache-generated-tests
156-
uses: actions/cache@v3
151+
- name: Download generated test
152+
uses: actions/download-artifact@v3
157153
with:
158-
path: |
159-
./integration-tests/c-example
160-
key: key
161-
162-
- if: needs.build-utbot-and-generate-test.steps.cache-generated-tests.outputs.cache-hit != 'true'
163-
name: Fail
164-
run: exit 1
154+
name: project
165155

166-
- name: Test Portability
156+
- name: Check test portability
167157
run: |
168158
chmod +x docker/action-scripts/check-portable-tests.sh
169159
./docker/action-scripts/check-portable-tests.sh

0 commit comments

Comments
 (0)