From b579519902a613c530fc4d785187df7b815b4af1 Mon Sep 17 00:00:00 2001 From: John Guibas Date: Sat, 20 Apr 2024 14:32:00 -0700 Subject: [PATCH] chore: split ci for speed (#553) --- .github/workflows/tests.yml | 48 ++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1a1404668b..7aaa5bab7f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,6 +44,45 @@ jobs: CARGO_INCREMENTAL: 1 FRI_QUERIES: 1 + e2e: + name: E2E + runs-on: warp-ubuntu-latest-arm64-8x + env: + CARGO_NET_GIT_FETCH_WITH_CLI: "true" + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Setup CI + uses: ./.github/actions/setup + with: + pull_token: ${{ secrets.PULL_TOKEN }} + + - name: Install sp1 toolchain + run: | + curl -L https://sp1.succinct.xyz | bash + echo "/root/.sp1/bin" >> $GITHUB_PATH + /root/.sp1/bin/sp1up + + - name: Run fibonacci-io example + uses: actions-rs/cargo@v1 + with: + command: run + args: --release --manifest-path examples/fibonacci-io/script/Cargo.toml + env: + RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -Ctarget-cpu=native + RUST_LOG: 1 + RUST_BACKTRACE: 1 + CARGO_INCREMENTAL: 1 + + - name: Run cargo prove new + run: | + cargo prove new cargo-prove-test + cd cargo-prove-test + cd script + cargo run --release + + misc: name: Miscellaneous runs-on: warp-ubuntu-latest-arm64-8x @@ -57,6 +96,7 @@ jobs: uses: ./.github/actions/setup with: pull_token: ${{ secrets.PULL_TOKEN }} + - name: Run cargo test with no default features uses: actions-rs/cargo@v1 with: @@ -67,11 +107,13 @@ jobs: RUST_LOG: 1 RUST_BACKTRACE: 1 CARGO_INCREMENTAL: 1 + - name: Install sp1 toolchain run: | curl -L https://sp1.succinct.xyz | bash echo "/root/.sp1/bin" >> $GITHUB_PATH /root/.sp1/bin/sp1up + - name: Run fibonacci-io example uses: actions-rs/cargo@v1 with: @@ -82,12 +124,6 @@ jobs: RUST_LOG: 1 RUST_BACKTRACE: 1 CARGO_INCREMENTAL: 1 - - name: Run cargo prove new - run: | - cargo prove new cargo-prove-test - cd cargo-prove-test - cd script - cargo run --release lints: name: Formatting & Clippy