-
Notifications
You must be signed in to change notification settings - Fork 3
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
adria0
committed
Feb 16, 2024
1 parent
e0462f4
commit ecbc6b6
Showing
11 changed files
with
153 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Lints | ||
|
||
# We only run these lints on trial-merges of PRs to reduce noise. | ||
on: | ||
merge_group: | ||
pull_request: | ||
types: [synchronize, opened, reopened, ready_for_review] | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
skip_check: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
cancel_others: 'true' | ||
concurrent_skipping: 'same_content_newer' | ||
|
||
lints: | ||
needs: [skip_check] | ||
if: | | ||
github.event.pull_request.draft == false && | ||
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true') | ||
name: Various lints | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
override: false | ||
- name: Cargo cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: lint-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Cargo build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
- name: Check code format | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
- name: Run clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-features --all-targets -- -D warnings | ||
|
||
# Ensure intra-documentation links all resolve correctly | ||
# Requires #![deny(intra_doc_link_resolution_failure)] in crates. | ||
- name: Check intra-doc links | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --no-deps --all --document-private-items |
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,60 @@ | ||
name: CI checks | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test on ${{ matrix.os }} with ${{ matrix.feature_set }} features | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
feature_set: [basic, all] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
include: | ||
- feature_set: all | ||
features: test-dev-graph,circuit-params | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
override: false | ||
- name: Run tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --verbose --release --workspace --no-default-features --features "${{ matrix.features }}" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
override: false | ||
- name: Add target | ||
run: rustup target add ${{ matrix.target }} | ||
- name: cargo build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --no-default-features --target ${{ matrix.target }} | ||
|
||
bitrot: | ||
name: Bitrot check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
override: false | ||
# Build benchmarks to prevent bitrot | ||
- name: Build benchmarks | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --benches --examples --all-features |
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,5 +1,5 @@ | ||
[package] | ||
name = "poseidon" | ||
name = "halo2_poseidon" | ||
version = "0.2.0" | ||
authors = [ | ||
"Sean Bowe <[email protected]>", | ||
|
@@ -59,7 +59,6 @@ circuit-params = ["halo2_proofs/circuit-params"] | |
test-dependencies = ["proptest"] | ||
unstable = [] | ||
|
||
|
||
[[bench]] | ||
name = "poseidon" | ||
harness = false |
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
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 @@ | ||
1.72.0 |
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
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