-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
4 changed files
with
77 additions
and
1 deletion.
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,68 @@ | ||
name: "Rust CI" | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: cargo build | ||
runs-on: [ubuntu-22.04-github-hosted-32core] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: "" | ||
- name: Setup rust | ||
run: | | ||
rustup set profile minimal | ||
rustup toolchain install nightly-2023-08-23 | ||
rustup default nightly-2023-08-23 | ||
cargo install cargo-nextest | ||
- name: Compile main | ||
run: cargo build --verbose | ||
- name: Compile encodings | ||
run: cargo build --manifest-path circuit_encodings/Cargo.toml --verbose | ||
- name: compile api | ||
run: cargo build --manifest-path circuit_sequencer_api/Cargo.toml --verbose | ||
- name: compile definitions | ||
run: cargo build --manifest-path circuit_definitions/Cargo.toml --verbose | ||
- name: Compile kzg | ||
run: cargo build --manifest-path kzg/Cargo.toml --verbose | ||
|
||
|
||
|
||
test: | ||
name: cargo test | ||
runs-on: [ubuntu-22.04-github-hosted-32core] | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: "" | ||
- name: Setup rust | ||
run: | | ||
rustup set profile minimal | ||
rustup toolchain install nightly-2023-08-23 | ||
rustup default nightly-2023-08-23 | ||
cargo install cargo-nextest | ||
- name: zkevm_test_harness - Main test | ||
run: cargo nextest run --release --manifest-path circuit_encodings/Cargo.toml --test-threads 2 | ||
- name: Encodings test | ||
run: cargo nextest run --release --manifest-path circuit_encodings/Cargo.toml | ||
- name: Api tests | ||
run: cargo nextest run --release --manifest-path circuit_sequencer_api/Cargo.toml | ||
- name: Definitions test | ||
run: cargo nextest run --release --manifest-path circuit_definitions/Cargo.toml | ||
- name: Kzg tests | ||
run: cargo nextest run --release --manifest-path kzg/Cargo.toml | ||
|
||
formatting: | ||
name: cargo fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: rustfmt | ||
- name: Rustfmt Check | ||
uses: actions-rust-lang/rustfmt@v1 |
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,8 @@ | ||
name: Cargo deny check | ||
on: pull_request | ||
jobs: | ||
cargo-deny: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 |
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
File renamed without changes.