Skip to content

Commit 563201a

Browse files
fetch program from cache
1 parent 0356219 commit 563201a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ env:
1818
cairo_programs/**/*.json
1919
!cairo_programs/manually_compiled/*
2020
examples/wasm-demo/src/array_sum.json
21-
cairo_programs/cairo-1-programs/bitwise.sierra
2221
TEST_COLLECT_COVERAGE: 1
2322
PROPTEST_CASES: 100
2423

@@ -92,7 +91,7 @@ jobs:
9291
echo PATH=$PATH >> $GITHUB_ENV
9392
9493
- name: Install cairo 1 compiler
95-
if: steps.cache-programs.outputs.cache-hit != 'true' && (matrix.program-target == 'cairo_1_test_contracts' || matrix.program-target == 'wasm_cairo_1_example')
94+
if: steps.cache-programs.outputs.cache-hit != 'true' && (matrix.program-target == 'cairo_1_test_contract' || matrix.program-target == 'wasm_cairo_1_example')
9695
run: make build-cairo-1-compiler
9796

9897
- name: Install cairo 2 compiler
@@ -152,6 +151,12 @@ jobs:
152151
path: ${{ env.CAIRO_PROGRAMS_PATH }}
153152
key: cairo_2_test_contracts-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'examples/wasm-demo/src/array_sum.cairo', 'Makefile', 'requirements.txt') }}
154153
fail-on-cache-miss: true
154+
- name: Fetch WASM Cairo 1 Example
155+
uses: actions/cache/restore@v3
156+
with:
157+
path: cairo_programs/cairo-1-programs/bitwise.sierra
158+
key: wasm_cairo_1_example-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'examples/wasm-demo/src/array_sum.cairo', 'Makefile', 'requirements.txt') }}
159+
fail-on-cache-miss: true
155160

156161
- name: Merge caches
157162
uses: actions/cache/save@v3

0 commit comments

Comments
 (0)