feat: ci refactor #1438
Workflow file for this run
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
name: PR | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: | |
- "**" | |
paths: | |
- "cli/**" | |
- "core/**" | |
- "prover/**" | |
- "recursion/**" | |
- "sdk/**" | |
- ".github/workflows/**" | |
merge_group: | |
types: [checks_requested] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-x86: | |
name: Test (x86-64) | |
runs-on: runs-on,runner=64cpu-linux-x64 | |
env: | |
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Setup CI | |
uses: ./.github/actions/setup | |
- name: Run cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --all-targets --all-features | |
env: | |
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | |
RUST_LOG: info | |
RUST_BACKTRACE: 1 | |
- name: Run cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --release | |
env: | |
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | |
RUST_BACKTRACE: 1 | |
FRI_QUERIES: 1 | |
SP1_DEV: 1 | |
# test-arm: | |
# name: Test (ARM) | |
# runs-on: runs-on,runner=64cpu-linux-arm64 | |
# env: | |
# CARGO_NET_GIT_FETCH_WITH_CLI: "true" | |
# steps: | |
# - name: Checkout sources | |
# uses: actions/checkout@v2 | |
# - name: Setup CI | |
# uses: ./.github/actions/setup | |
# - name: Run cargo check | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: check | |
# args: --all-targets --all-features | |
# env: | |
# RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | |
# RUST_LOG: info | |
# RUST_BACKTRACE: 1 | |
# - name: Run cargo test | |
# uses: actions-rs/cargo@v1 | |
# with: | |
# command: test | |
# args: --release | |
# env: | |
# RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | |
# RUST_BACKTRACE: 1 | |
# FRI_QUERIES: 1 | |
# SP1_DEV: 1 | |
lint: | |
name: Formatting & Clippy | |
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 | |
- name: Run cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
env: | |
CARGO_INCREMENTAL: 1 | |
- name: Run cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-features --all-targets -- -D warnings -A incomplete-features | |
env: | |
CARGO_INCREMENTAL: 1 |