-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
151 changed files
with
17,191 additions
and
2,519 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "dev" | ||
- package-ecosystem: "docker" | ||
directory: "/cli/docker" | ||
schedule: | ||
interval: "weekly" | ||
target-branch: "dev" |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Main | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "cli/**" | ||
- "core/**" | ||
- "prover/**" | ||
- "recursion/**" | ||
- "derive/**" | ||
- "sdk/**" | ||
- ".github/workflows/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
groth16: | ||
name: Groth16 | ||
runs-on: runs-on,cpu=64,ram=256,family=m7i+m7a,hdd=80,image=ubuntu22-full-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 test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
toolchain: nightly-2024-04-17 | ||
args: --release -p sp1-sdk -- test_e2e_prove_groth16 --nocapture | ||
env: | ||
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native | ||
RUST_BACKTRACE: 1 |
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 |
---|---|---|
@@ -1,19 +1,177 @@ | ||
name: PR Lint | ||
name: PR | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
|
||
permissions: | ||
pull-requests: read | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- "**" | ||
paths: | ||
- "cli/**" | ||
- "core/**" | ||
- "prover/**" | ||
- "recursion/**" | ||
- "derive/**" | ||
- "sdk/**" | ||
- ".github/workflows/**" | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
main: | ||
name: Title | ||
runs-on: warp-ubuntu-latest-arm64-4x | ||
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 | ||
toolchain: nightly-2024-04-17 | ||
args: --all-targets --all-features | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
toolchain: nightly-2024-04-17 | ||
args: --release -- --nocapture | ||
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: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
- 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 | ||
toolchain: nightly-2024-04-17 | ||
args: --all-targets --all-features | ||
|
||
- name: Run cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
toolchain: nightly-2024-04-17 | ||
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: runs-on,runner=8cpu-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 fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
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 | ||
|
||
examples: | ||
name: Examples | ||
runs-on: runs-on,runner=8cpu-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: Install SP1 toolchain | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
~/.sp1/bin/sp1up | ||
~/.sp1/bin/cargo-prove prove --version | ||
- name: Install SP1 CLI | ||
run: | | ||
cd cli | ||
cargo install --locked --path . | ||
cd ~ | ||
- name: Run cargo check | ||
run: | | ||
RUSTFLAGS="-Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native" \ | ||
cargo check --manifest-path examples/Cargo.toml --all-targets --all-features | ||
cli: | ||
name: CLI | ||
runs-on: runs-on,runner=8cpu-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: Install SP1 toolchain | ||
run: | | ||
curl -L https://sp1.succinct.xyz | bash | ||
~/.sp1/bin/sp1up | ||
~/.sp1/bin/cargo-prove prove --version | ||
- name: Install SP1 CLI | ||
run: | | ||
cd cli | ||
cargo install --locked --path . | ||
cd ~ | ||
- name: Run cargo prove new | ||
run: | | ||
cargo prove new fibonacci | ||
- name: Build program and run script | ||
run: | | ||
cd fibonacci | ||
cd program | ||
cargo prove build | ||
cd ../script | ||
SP1_DEV=1 RUST_LOG=info cargo run --release |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: PR Lint | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Title | ||
runs-on: warp-ubuntu-latest-arm64-4x | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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.