-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dori Medini <[email protected]>
- Loading branch information
1 parent
adeb39b
commit bfd6813
Showing
98 changed files
with
91,217 additions
and
8,614 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[env] | ||
# Enforce native_blockifier linking with pypy3.9. | ||
PYO3_PYTHON = "/usr/local/bin/pypy3.9" | ||
# Increase Rust stack size. | ||
# This should be large enough for `MAX_ENTRY_POINT_RECURSION_DEPTH` recursive entry point calls. | ||
RUST_MIN_STACK = "4194304" # 4 MiB | ||
|
||
[target.x86_64-apple-darwin] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] | ||
|
||
[target.aarch64-apple-darwin] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] |
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 |
---|---|---|
@@ -1,7 +1,15 @@ | ||
/ci | ||
/data | ||
/logs | ||
build | ||
dist | ||
*.DS_Store | ||
/target | ||
/.vscode | ||
# Git hooks | ||
|
||
# Git hooks. | ||
/.husky | ||
|
||
# Blockifier venv. | ||
tmp_venv/* | ||
|
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,2 @@ | ||
# Export the native_blockifier built artifact to allow local builds. | ||
exports_files(["target/release/libnative_blockifier.so"]) |
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,14 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt update && apt -y install \ | ||
build-essential \ | ||
clang \ | ||
curl \ | ||
python3-dev | ||
|
||
ENV RUSTUP_HOME=/opt/rust | ||
ENV CARGO_HOME=/opt/rust | ||
ENV PATH=$PATH:/opt/rust/bin | ||
|
||
COPY scripts/install_build_tools.sh . | ||
RUN bash install_build_tools.sh |
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,16 @@ | ||
#!/bin/env bash | ||
set -e | ||
|
||
docker_image_name=blockifier-ci | ||
docker build . -t ${docker_image_name} | ||
|
||
docker run \ | ||
--rm \ | ||
--net host \ | ||
-e CARGO_HOME=${HOME}/.cargo \ | ||
-u $UID \ | ||
-v /tmp:/tmp \ | ||
-v "${HOME}:${HOME}" \ | ||
--workdir ${PWD} \ | ||
${docker_image_name} \ | ||
cargo build --release -p native_blockifier --features "testing" |
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
Oops, something went wrong.