[feat] sp1 update #72
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: CI Check | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: github.event.pull_request.draft == false | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- rust: 1.63.0 | |
feature: default | |
- rust: nightly | |
feature: asm | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: ${{ matrix.rust }} | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features ${{ matrix.feature }} | |
test: | |
if: github.event.pull_request.draft == false | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- rust: 1.63.0 | |
feature: default | |
- rust: nightly | |
feature: asm | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: ${{ matrix.rust }} | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --release --all --features ${{ matrix.feature }} | |
fmt: | |
if: github.event.pull_request.draft == false | |
name: Rustfmt | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
- run: rustup component add rustfmt | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
if: github.event.pull_request.draft == false | |
name: Clippy lint checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: nightly | |
components: clippy | |
- name: Run clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --verbose --release --tests --all-features | |
bench: | |
if: github.event.pull_request.draft == false | |
name: Bench | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
override: true | |
toolchain: nightly | |
- name: Bench arithmetic | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --profile bench test_field -- --nocapture | |
- name: Bench assembly arithmetic | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --profile bench test_field --features asm -- --nocapture |