-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(raiko): run general tests on all targets (#164)
* Run general tests on all targets * fix risc0 * fix SGX + temp disable driver tests * typo * increase timeout on ci for SP1 * disable slow test on SP1 so ci can handle it * decrease sp1 timeout again on ci * temp disable sp1 driver test * use more recent taiko a7 block * small improvements + run standard tests with native prover * update prove_block with working holesky endpoint * increase timeout * fix ci env vars * more fixes to features * Fix build error propegation * skip kzg check on SP1 because out of memory problems * fix sgx compile error * fix default skip value
- Loading branch information
Showing
12 changed files
with
211 additions
and
95 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 |
---|---|---|
|
@@ -8,18 +8,45 @@ on: | |
env: | ||
CARGO_TERM_COLOR: always | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RISC0_VERSION: 0.20.1 | ||
RISC0_TOOLCHAIN_VERSION: test-release-2 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-test: | ||
name: Build and test native | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 120 | ||
env: | ||
TARGET: native | ||
CI: 1 | ||
MOCK: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly-2024-04-17 | ||
profile: minimal | ||
- name: Install cargo-binstall | ||
uses: cargo-bins/[email protected] | ||
- name: Install native | ||
run: make install | ||
- name: Build native prover | ||
run: make build | ||
- name: Test native prover | ||
run: make test | ||
|
||
build-test-risc0: | ||
name: Build and test risc0 | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
timeout-minutes: 120 | ||
env: | ||
TARGET: risc0 | ||
CI: 1 | ||
MOCK: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -32,16 +59,20 @@ jobs: | |
uses: cargo-bins/[email protected] | ||
- uses: risc0/risc0/.github/actions/[email protected] | ||
- name: Install risc0 | ||
run: TARGET="risc0" CI=1 make install | ||
run: make install | ||
- name: Build risc0 prover | ||
run: TARGET="risc0" make build | ||
run: make build | ||
- name: Test risc0 prover | ||
run: MOCK=1 TARGET="risc0" make test | ||
run: make test | ||
|
||
build-test-sp1: | ||
name: Build and test sp1 | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
timeout-minutes: 120 | ||
env: | ||
TARGET: sp1 | ||
CI: 1 | ||
MOCK: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -53,16 +84,20 @@ jobs: | |
- name: Install cargo-binstall | ||
uses: cargo-bins/[email protected] | ||
- name: Install sp1 | ||
run: TARGET="sp1" CI=1 make install | ||
run: make install | ||
- name: Build sp1 prover | ||
run: TARGET="sp1" make build | ||
run: make build | ||
- name: Test sp1 prover | ||
run: MOCK=1 TARGET="sp1" make test | ||
run: make test | ||
|
||
build-test-sgx: | ||
name: Build and test sgx | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
timeout-minutes: 120 | ||
env: | ||
TARGET: sgx | ||
CI: 1 | ||
MOCK: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -74,11 +109,11 @@ jobs: | |
- name: Install cargo-binstall | ||
uses: cargo-bins/[email protected] | ||
- name: Install sgx | ||
run: TARGET="sgx" CI=1 make install | ||
run: make install | ||
- name: Build sgx prover | ||
run: TARGET="sgx" make build | ||
run: make build | ||
- name: Test sgx prover | ||
run: TARGET="sgx" make test | ||
run: make test | ||
|
||
build-test-sgx-with-docker: | ||
name: Build and test sgx with Docker | ||
|
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
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.