Skip to content

Commit

Permalink
ci: add native runtime env (#783)
Browse files Browse the repository at this point in the history
* ci: add an explicit, absolute CAIRO_NATIVE_RUNTIME_PATH

* fix export of native env var
  • Loading branch information
enitrat authored Dec 6, 2024
1 parent 2b85f46 commit bcb87d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ KKRT_V0_BUILD_ARTIFACT_URL = $(shell curl -L https://api.github.com/repos/kkrt-l
# Kakarot SSJ artifacts for precompiles
KKRT_SSJ_BUILD_ARTIFACT_URL = $(shell curl -L https://api.github.com/repos/kkrt-labs/kakarot-ssj/releases/latest | jq -r '.assets[0].browser_download_url')

# Note: the `CAIRO_NATIVE_RUNTIME_LIBRARY` env variable must be set to the absolute path to the
# `libcairo_native_runtime.a` file. This is because we use the `native` feature of the `blockifier`
# crate, which requires the runtime to be available.
export CAIRO_NATIVE_RUNTIME_LIBRARY=$(HOME)/.cargo/libcairo_native_runtime.a

# Downloads and unpacks Ethereum Foundation tests in the `$(EF_TESTS_DIR)` directory.
# Requires `wget` and `tar`
$(EF_TESTS_DIR):
Expand All @@ -27,6 +32,7 @@ $(EF_TESTS_DIR):

# Ensures the commands for $(EF_TESTS_DIR) always run on `make setup`, regardless if the directory exists
.PHONY: $(EF_TESTS_DIR) build

setup: $(EF_TESTS_DIR)

setup-kakarot-v0: clean-kakarot-v0
Expand Down Expand Up @@ -74,6 +80,7 @@ tests-v0-ci: build
tests-v1-ci: build
cargo test --test tests --lib --no-fail-fast --quiet --features "v1,ci"


# Runs ef tests only with the `v0` feature
ef-test-v0: build
cargo test --test tests --no-fail-fast --quiet --features "v0,ci"
Expand Down

0 comments on commit bcb87d3

Please sign in to comment.