Skip to content

Commit

Permalink
Merge remote-tracking branch 'scroll/main' into feat/poseidon_bn254
Browse files Browse the repository at this point in the history
  • Loading branch information
kunxian-xia committed Jun 13, 2024
2 parents 7eb3efb + 8c0f501 commit 46cd5a9
Show file tree
Hide file tree
Showing 385 changed files with 6,665 additions and 5,264 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up git private repo access
run: |
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ concurrency:
cancel-in-progress: true

jobs:
groth16:
name: Groth16
plonk:
name: Plonk
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
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup
Expand All @@ -35,7 +35,16 @@ jobs:
with:
command: test
toolchain: nightly-2024-04-17
args: --release -p sp1-sdk -- test_e2e_prove_groth16 --nocapture
args: --release -p sp1-sdk --features plonk -- test_e2e_prove_plonk --nocapture
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
RUST_BACKTRACE: 1
RUST_BACKTRACE: 1
check-branch:
name: Check branch
runs-on: ubuntu-latest
steps:
- name: Check branch
if: github.head_ref != 'dev'
run: |
echo "ERROR: You can only merge to main from dev."
exit 1
19 changes: 11 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR

on:
push:
branches: [main, dev]
branches: [main]
pull_request:
branches:
- "**"
Expand All @@ -13,6 +13,9 @@ on:
- "recursion/**"
- "derive/**"
- "sdk/**"
- "zkvm/**"
- "tests/**"
- "examples/**"
- ".github/workflows/**"
merge_group:

Expand All @@ -28,7 +31,7 @@ jobs:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup
Expand All @@ -45,7 +48,7 @@ jobs:
with:
command: test
toolchain: nightly-2024-04-17
args: --release -- --nocapture
args: --release --features plonk
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
RUST_BACKTRACE: 1
Expand All @@ -59,7 +62,7 @@ jobs:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup
Expand All @@ -76,7 +79,7 @@ jobs:
with:
command: test
toolchain: nightly-2024-04-17
args: --release
args: --release --features plonk
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
RUST_BACKTRACE: 1
Expand All @@ -90,7 +93,7 @@ jobs:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup
Expand Down Expand Up @@ -118,7 +121,7 @@ jobs:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup
Expand Down Expand Up @@ -147,7 +150,7 @@ jobs:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ jobs:
with:
pull_token: ${{ secrets.PULL_TOKEN }}

# If it's a nightly release, tag with the release time. If the tag is `main`, we want to use
# `latest` as the tag name. Else, use the tag name as is.
- name: Compute release name and tag
id: release_info
run: |
if [[ $IS_NIGHTLY ]]; then
echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
echo "release_name=Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_REF_NAME}" == "main" ]]; then
echo "tag_name=latest" >> $GITHUB_OUTPUT
echo "release_name=Latest" >> $GITHUB_OUTPUT
else
echo "tag_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
echo "release_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -200,14 +205,14 @@ jobs:
with:
name: ${{ needs.prepare.outputs.release_name }}
tag_name: ${{ needs.prepare.outputs.tag_name }}
prerelease: ${{ env.IS_NIGHTLY }}
prerelease: ${{ env.IS_NIGHTLY || needs.prepare.outputs.tag_name == 'latest' }}
body: ${{ needs.prepare.outputs.changelog }}
files: |
${{ steps.artifacts.outputs.file_name }}
${{ steps.man.outputs.cargo_prove_man }}
# If this is a nightly release, it also updates the release
# tagged `nightly` for compatibility with `foundryup`
# tagged `nightly` for compatibility with `sp1up`
- name: Update nightly release
if: ${{ env.IS_NIGHTLY }}
uses: softprops/action-gh-release@v1
Expand Down Expand Up @@ -260,4 +265,4 @@ jobs:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
update_existing: true
filename: .github/RELEASE_FAILURE_ISSUE_TEMPLATE.md
filename: .github/RELEASE_FAILURE_ISSUE_TEMPLATE.md
Loading

0 comments on commit 46cd5a9

Please sign in to comment.