Skip to content

Conner/suite fix

Conner/suite fix #21

Workflow file for this run

name: Testing Suite
on:
push:
branches: [main, dev]
pull_request:
branches:
- "**"
paths:
- "crates/**"
- "examples/**"
- "Cargo.toml"
- ".github/workflows/**"
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-x86:
name: ${{ matrix.s3_folder }} (${{ matrix.mode }})
runs-on: ${{ matrix.mode == 'cuda' && 'nvidia-gpu-linux-x64' || fromJSON('["runs-on", "runner=64cpu-linux-x64", "spot=false", "run-id=${{ github.run_id }}"]') }}
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
strategy:
matrix:
mode:
- cpu
- cuda
s3_folder:
- fibonacci-17k
- ssz-withdrawals
- tendermint
- rsp-20526624
- rsa
- regex
- json
- chess
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup CI
uses: ./.github/actions/setup
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_S3 }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_S3 }}
aws-region: us-west-2
- name: Copy files from S3
run: |
mkdir -p workdir
aws s3 cp s3://sp1-testing-suite/${{ matrix.s3_folder }}/program.bin workdir/program.bin
aws s3 cp s3://sp1-testing-suite/${{ matrix.s3_folder }}/stdin.bin workdir/stdin.bin
- name: Run sp1-perf
uses: actions-rs/cargo@v1
with:
command: run
toolchain: 1.81.0
args: --release -p sp1-perf -- --program workdir/program.bin --stdin workdir/stdin.bin --mode ${{ matrix.mode }}
env:
RUSTFLAGS: -Copt-level=3 -Ctarget-cpu=native
RUST_BACKTRACE: 1