-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update CI to setup venv and compile cairo zero prgms
- Loading branch information
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.PHONY: create-proof-programs-symlinks | ||
create-proof-programs-symlinks: | ||
cd conformance/proof-programs; ln -s ../cairo-0/*.cairo . | ||
|
||
# Compile Cairo Zero Programs | ||
|
||
CAIRO_0_DIR=conformance/cairo-0/ | ||
CAIRO_0_PROGRAMS:=$(shell find $(CAIRO_0_DIR) -name '*.cairo') | ||
COMPILED_CAIRO_0_PROGRAMS:=$(CAIRO_0_PROGRAMS:%.cairo=%.json) | ||
|
||
$(CAIRO_0_DIR)%.json: $(CAIRO_0_DIR)%.cairo | ||
cairo-compile --cairo-path "$(CAIRO_0_DIR)" $< --output $@ | ||
|
||
# Compile Cairo Zero Proof Programs | ||
|
||
CAIRO_0_PROOF_DIR=conformance/proof-programs/ | ||
CAIRO_0_PROOF_PROGRAMS:=$(shell find $(CAIRO_0_PROOF_DIR) -name '*.cairo') | ||
COMPILED_CAIRO_0_PROOF_PROGRAMS:=$(CAIRO_0_PROOF_PROGRAMS:%.cairo=%.json) | ||
|
||
$(CAIRO_0_PROOF_DIR)%.json: $(CAIRO_0_PROOF_DIR)%.cairo | ||
cairo-compile --cairo_path "$(CAIRO_0_PROOF_DIR)" $< --output $@ --proof_mode | ||
|
||
compile: $(COMPILED_CAIRO_0_PROGRAMS) $(COMPILED_CAIRO_0_PROOF_PROGRAMS) | ||
|
||
# Clean artifacts | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(CAIRO_0_DIR)/*.json | ||
rm -f $(CAIRO_0_PROOF_DIR)/*.cairo | ||
rm -f $(CAIRO_0_PROOF_DIR)/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ecdsa==0.18.0 | ||
bitarray==2.7.3 | ||
fastecdsa==2.2.3 | ||
sympy==1.11.1 | ||
typeguard==2.13.3 | ||
cairo-lang==0.13.1 |