Skip to content

Commit

Permalink
compile cairo programs in another script
Browse files Browse the repository at this point in the history
  • Loading branch information
StringNick committed Jun 14, 2024
1 parent 61aae71 commit 25e05a7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ jobs:
source scripts/install/install-ubuntu.sh
make check
- name: Compile cairo programs
run: |
make compile-cairo-programs
- name: Integration test
run: |
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ run-integration-test-filter:
build-compare-benchmarks: build_cairo_vm_cli build-optimize
cd scripts; sh benchmarks.sh


compile-cairo-programs:
cd scripts; sh build_cairo_programs.sh

build-compare-output: build_cairo_vm_cli build-optimize
cd scripts; sh test_compare_output.sh

Expand Down
15 changes: 15 additions & 0 deletions scripts/build_cairo_programs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

#!/usr/bin/env bash

set -e
. ../cairo-vm-env/bin/activate

cd ..
CAIRO_PROGRAMS_DIR=cairo_programs
CAIRO_DIR=cairo_programs

for file in $(ls ${CAIRO_PROGRAMS_DIR} | grep .cairo | sed -E 's/\.cairo//'); do
echo "Compiling ${file} program..."
cairo-compile --cairo_path="${CAIRO_DIR}:" ${CAIRO_PROGRAMS_DIR}/${file}.cairo --output ${CAIRO_PROGRAMS_DIR}/${file}.json --proof_mode
done

0 comments on commit 25e05a7

Please sign in to comment.