-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opcode: add/sub trace integration and ci pipeline (#209)
- [x] add/sub assignment from trace - [x] add integration test ci pipeline > it will run `riscv_add.rs` with end 2 end test
- Loading branch information
Showing
13 changed files
with
465 additions
and
135 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,62 @@ | ||
name: Integrations | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
types: [synchronize, opened, reopened, ready_for_review] | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
cancel_others: 'true' | ||
concurrent_skipping: 'same_content_newer' | ||
paths_ignore: '["**/README.md"]' | ||
do_not_skip: '["pull_request", "workflow_dispatch", "schedule", "merge_group"]' | ||
|
||
lints: | ||
needs: [skip_check] | ||
if: | | ||
github.event.pull_request.draft == false && | ||
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true') | ||
name: Various lints | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
target: [x86_64-unknown-linux-gnu, riscv32im-unknown-none-elf] | ||
# Exclude the riscv32im-unknown-none-elf target | ||
exclude: | ||
- target: riscv32im-unknown-none-elf | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cargo cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: integration-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Run example | ||
uses: actions-rs/cargo@v1 | ||
env: | ||
RAYON_NUM_THREADS: 2 | ||
with: | ||
command: run | ||
args: --package ceno_zkvm --example riscv_add --target ${{ matrix.target }} -- --start 10 --end 11 | ||
|
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,6 +1,5 @@ | ||
name: Lints | ||
|
||
# We only run these lints on trial-merges of PRs to reduce noise. | ||
on: | ||
merge_group: | ||
pull_request: | ||
|
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,6 +1,5 @@ | ||
name: Tests | ||
|
||
# We only run these lints on trial-merges of PRs to reduce noise. | ||
on: | ||
merge_group: | ||
pull_request: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.