Skip to content

Commit 4f53823

Browse files
prepare rust.yml and MakeFile for the folder stwo_exclusive_programs which will contain programs that will be run but not yet proven
1 parent e5c96eb commit 4f53823

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
cairo_bench_programs,
4747
cairo_proof_programs,
4848
cairo_test_programs,
49+
cairo_stwo_exclusive_programs,
4950
cairo_1_test_contracts,
5051
cairo_2_test_contracts,
5152
]
@@ -124,6 +125,12 @@ jobs:
124125
path: ${{ env.CAIRO_PROGRAMS_PATH }}
125126
key: cairo_test_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'examples/wasm-demo/src/array_sum.cairo') }}
126127
fail-on-cache-miss: true
128+
- name: Fetch cairo stwo exclusive programs
129+
uses: actions/cache/restore@v3
130+
with:
131+
path: ${{ env.CAIRO_PROGRAMS_PATH }}
132+
key: cairo_stwo_exclusive_programs-cache-${{ hashFiles('cairo_programs/**/*.cairo', 'examples/wasm-demo/src/array_sum.cairo') }}
133+
fail-on-cache-miss: true
127134
- name: Fetch proof programs
128135
uses: actions/cache/restore@v3
129136
with:
@@ -486,6 +493,9 @@ jobs:
486493
- program-target: cairo_test_programs
487494
programs-dir: cairo_programs
488495
extra-args: '--cairo_pie_output {program}.rs.pie.zip'
496+
- program-target: cairo_stwo_exclusive_programs
497+
programs-dir: cairo_programs
498+
extra-args: '--cairo_pie_output {program}.rs.pie.zip'
489499
name: Compute memory and execution traces with cairo-vm
490500
needs: [ build-programs, build-release ]
491501
runs-on: ubuntu-22.04

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### Upcoming Changes
44

5+
* feat: prepare `rust.yml` and `MakeFile` for the folder `stwo_exclusive_programs` [#1939](https://github.com/lambdaclass/cairo-vm/pull/1939)
6+
57
* feat: add `get_u32_range` to `impl VirtualMachine` add `get_u32` and `get_u32_range` to `impl Memory` [#1936](https://github.com/lambdaclass/cairo-vm/pull/1936)
68

79
* feat: add the field `opcode_extension` to the structure of `Instruction` [#1933](https://github.com/lambdaclass/cairo-vm/pull/1933)

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ CAIRO_RS_MEM:=$(patsubst $(TEST_DIR)/%.json, $(TEST_DIR)/%.rs.memory, $(COMPILED
8282
CAIRO_RS_TRACE:=$(patsubst $(TEST_DIR)/%.json, $(TEST_DIR)/%.rs.trace, $(COMPILED_TESTS))
8383
CAIRO_RS_PIE:=$(patsubst $(TEST_DIR)/%.json, $(TEST_DIR)/%.rs.pie.zip, $(COMPILED_TESTS))
8484

85+
STWO_EXCLUSIVE_DIR=cairo_programs/stwo_exclusive_programs
86+
STWO_EXCLUSIVE_FILES:=$(wildcard $(STWO_EXCLUSIVE_DIR)/*.cairo)
87+
COMPILED_STWO_EXCLUSIVE_TESTS:=$(patsubst $(STWO_EXCLUSIVE_DIR)/%.cairo, $(STWO_EXCLUSIVE_DIR)/%.json, $(STWO_EXCLUSIVE_FILES))
88+
8589
BENCH_DIR=cairo_programs/benchmarks
8690
BENCH_FILES:=$(wildcard $(BENCH_DIR)/*.cairo)
8791
COMPILED_BENCHES:=$(patsubst $(BENCH_DIR)/%.cairo, $(BENCH_DIR)/%.json, $(BENCH_FILES))
@@ -249,6 +253,7 @@ check:
249253

250254
cairo_test_programs: $(COMPILED_TESTS) $(COMPILED_BAD_TESTS) $(COMPILED_NORETROCOMPAT_TESTS) $(COMPILED_PRINT_TESTS) $(COMPILED_MOD_BUILTIN_TESTS) $(COMPILED_SECP_CAIRO0_HINTS) $(COMPILED_KZG_DA_CAIRO0_HINTS)
251255
cairo_proof_programs: $(COMPILED_PROOF_TESTS) $(COMPILED_MOD_BUILTIN_PROOF_TESTS)
256+
cairo_stwo_exclusive_programs: $(COMPILED_STWO_EXCLUSIVE_TESTS)
252257
cairo_bench_programs: $(COMPILED_BENCHES)
253258
cairo_1_test_contracts: $(CAIRO_1_COMPILED_CASM_CONTRACTS)
254259
cairo_2_test_contracts: $(CAIRO_2_COMPILED_CASM_CONTRACTS)

0 commit comments

Comments
 (0)