-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9821436
commit 7b5918e
Showing
1 changed file
with
36 additions
and
0 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,36 @@ | ||
name: Blockifier-CI | ||
|
||
# TODO(Dori, 15/8/2024): Split this job, so the feature-less build doesn't run on every push to main | ||
# branches. | ||
on: | ||
push: | ||
pull_request: | ||
|
||
|
||
env: | ||
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld" | ||
|
||
# On PR events, cancel existing CI runs on this same PR for this workflow. | ||
# Also, create different concurrency groups for different pushed commits, on push events. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && 'PR' || github.sha }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
feature-combo-builds: | ||
runs-on: starkware-ubuntu-latest-medium | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/bootstrap | ||
- run: echo ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && 'PR' || github.sha }} | ||
# No features - build blockifier without features activated by dependencies in the workspace. | ||
- run: cargo build -p blockifier | ||
- run: cargo test -p blockifier | ||
# transaction_serde is not activated by any workspace crate; test the build. | ||
- run: cargo build -p blockifier --features transaction_serde | ||
- run: cargo test -p blockifier --features transaction_serde | ||
# cairo_native is not activated by any workspace crate; test the build. | ||
- run: cargo build -p blockifier --features cairo_native | ||
- run: cargo test -p blockifier --features cairo_native |