forked from starkware-libs/sequencer
-
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.
Merge pull request #20 from lambdaclass/update-main
Update main
- Loading branch information
Showing
848 changed files
with
176,026 additions
and
44,667 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,13 @@ | ||
[env] | ||
CAIRO_NATIVE_RUNTIME_LIBRARY = "./libcairo_native_runtime.a" | ||
LLVM_SYS_191_PREFIX = "/usr/lib/llvm-19/" | ||
MLIR_SYS_190_PREFIX = "/usr/lib/llvm-19/" | ||
TABLEGEN_190_PREFIX = "/usr/lib/llvm-19/" | ||
|
||
# Use `lld` for linking instead of `ld`, since we run out of memory while linking with `ld` on | ||
# 16-cores linux machines, see: | ||
# https://nnethercote.github.io/perf-book/build-configuration.html#linking. | ||
# TODO: remove this once `rust` stabilizes `lld` as the default linker, currently only on nightly: | ||
# https://github.com/rust-lang/rust/issues/39915#issuecomment-618726211 | ||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-Clink-arg=-fuse-ld=lld"] |
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,7 @@ | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install rust. | ||
uses: ./.github/actions/install_rust | ||
- name: Install cairo native. | ||
uses: ./.github/actions/setup_native_deps |
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,27 +1,9 @@ | ||
# Installs rust toolchain with the version defined in .github/actions/install_rust/rust_version.txt. | ||
inputs: | ||
components: | ||
description: "Optional: which additional components to install." | ||
required: false | ||
type: string | ||
default: '' | ||
name: Bootsrap rust installation | ||
description: Setup rust environment and its components, also caching the build results. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Define toolchain | ||
run: echo "DEFAULT_TOOLCHAIN=$(cat .github/actions/install_rust/rust_version.txt)" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: install rust toolchain with given components | ||
if: "${{ inputs.components != '' }}" | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.DEFAULT_TOOLCHAIN }} | ||
components: ${{ inputs.components }} | ||
|
||
- name: install rust toolchain without given components | ||
if: "${{ inputs.components == '' }}" | ||
uses: dtolnay/rust-toolchain@master | ||
- uses: moonrepo/setup-rust@v1 | ||
with: | ||
toolchain: ${{ env.DEFAULT_TOOLCHAIN }} | ||
cache-base: main(-v[0-9].*)? |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
name: "Setup Cairo Native Dependencies" | ||
description: "Sets up LLVM and GMP libraries" | ||
|
||
outputs: | ||
cairo-native-runtime-library: | ||
description: "The path to the cairo native runtime library" | ||
value: ${{ steps.set-env-vars.outputs.cairo-native-runtime-library }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Cairo Native Runtime Dependencies | ||
id: set-runtime-deps | ||
shell: bash | ||
run: | | ||
sudo ./scripts/dependencies.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
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 |
---|---|---|
|
@@ -8,18 +8,15 @@ on: | |
- '.github/workflows/blockifier_post-merge.yml' | ||
- 'crates/blockifier/**' | ||
- 'crates/native_blockifier/**' | ||
- 'scripts/dependencies.sh' | ||
|
||
jobs: | ||
if_merged: | ||
if: github.event.pull_request.merged == true | ||
runs-on: starkware-ubuntu-20-04-medium | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install_rust | ||
- uses: Noelware/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: "v0-rust-ubuntu-20.04" | ||
- uses: ./.github/actions/bootstrap | ||
|
||
# Setup pypy and link to the location expected by .cargo/config.toml. | ||
- uses: actions/setup-python@v5 | ||
|
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,44 @@ | ||
name: Blockifier-Reexecution-CI | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- auto_merge_enabled | ||
- edited | ||
paths: | ||
# Other than code-related changes, all changes related to the blockifier should trigger the build. | ||
- '.github/workflows/blockifier_reexecution_ci.yml' | ||
- 'Cargo.lock' | ||
- 'Cargo.toml' | ||
- 'crates/blockifier/**' | ||
- 'crates/blockifier_reexecution/**' | ||
- 'scripts/dependencies.sh' | ||
- 'scripts/install_build_tools.sh' | ||
- 'scripts/sequencer-ci.Dockerfile' | ||
|
||
# On PR events, cancel existing CI runs on this same PR for this workflow. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
blockifier_reexecution: | ||
runs-on: starkware-ubuntu-latest-medium | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/bootstrap | ||
# Download the blockifier re-execution test data. | ||
- id: auth | ||
uses: "google-github-actions/auth@v2" | ||
with: | ||
credentials_json: ${{ secrets.SA_REEXECUTION_ARTIFACTS_READ_ACCESS_KEY }} | ||
- uses: 'google-github-actions/setup-gcloud@v2' | ||
- run: echo "REEXECUTION_INPUT_FILES_PREFIX=$(cat ./crates/blockifier_reexecution/resources/offline_reexecution_files_prefix)" >> $GITHUB_ENV | ||
- run: gcloud storage cp -r gs://reexecution_artifacts/$REEXECUTION_INPUT_FILES_PREFIX/resources/* ./crates/blockifier_reexecution/resources/ | ||
# Run blockifier re-execution tests. | ||
- run: cargo test --release -p blockifier_reexecution -- --include-ignored | ||
# Compile the rpc-tests, without running them. | ||
- run: cargo test -p blockifier_reexecution --features blockifier_regression_https_testing --no-run |
Oops, something went wrong.