|
47 | 47 | - cairo_bench_programs |
48 | 48 | - cairo_proof_programs |
49 | 49 | - cairo_test_programs |
50 | | - - cairo_test_suite_programs |
51 | 50 | - cairo_1_test_contracts |
52 | 51 | - cairo_2_test_contracts |
53 | 52 | name: Build Cairo programs |
|
88 | 87 | && matrix.program-target != 'cairo_2_test_contracts' |
89 | 88 | run: | |
90 | 89 | make python-deps |
91 | | - . cairo-vm-env/bin/activate |
92 | | - echo PATH=$PATH >> $GITHUB_ENV |
| 90 | + echo "$(pwd)/cairo-vm-env/bin" >> $GITHUB_PATH |
93 | 91 |
|
94 | 92 | - name: Install cairo 1 compiler |
95 | 93 | if: steps.cache-programs.outputs.cache-hit != 'true' && matrix.program-target == 'cairo_1_test_contracts' |
|
101 | 99 |
|
102 | 100 | - name: Build programs |
103 | 101 | if: steps.cache-programs.outputs.cache-hit != 'true' |
104 | | - run: make -j ${{ matrix.program-target }} |
| 102 | + run: | |
| 103 | + [ -d cairo-vm-env ] && . cairo-vm-env/bin/activate || true |
| 104 | + make -j ${{ matrix.program-target }} |
105 | 105 |
|
106 | 106 | # NOTE: used to reduce the amount of cache steps we need in later jobs |
107 | 107 | # TODO: remove this cache once the workflow finishes |
@@ -136,12 +136,6 @@ jobs: |
136 | 136 | path: ${{ env.CAIRO_PROGRAMS_PATH }} |
137 | 137 | key: cairo_bench_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
138 | 138 | fail-on-cache-miss: true |
139 | | - - name: Fetch cairo test suite programs |
140 | | - uses: actions/cache/restore@v3 |
141 | | - with: |
142 | | - path: ${{ env.CAIRO_PROGRAMS_PATH }} |
143 | | - key: cairo_test_suite_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'vm/src/tests/cairo_test_suite/**/*.cairo', 'Makefile', 'requirements.txt') }} |
144 | | - fail-on-cache-miss: true |
145 | 139 | - name: Fetch test contracts (Cairo 1) |
146 | 140 | uses: actions/cache/restore@v3 |
147 | 141 | with: |
|
0 commit comments