Skip to content

Commit

Permalink
pin the nightly toolchain (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrain authored Dec 14, 2024
1 parent e62dca6 commit f8fa50d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
toolchain: nightly-2024-06-25
override: false
default: false
components: rustfmt
Expand All @@ -49,7 +49,7 @@ jobs:
uses: crate-ci/[email protected]

- name: Format Check
run: cargo +nightly fmt -- --check
run: cargo +nightly-2024-06-25 fmt -- --check

- name: Clippy
uses: actions-rs/clippy-check@v1
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_benchmarks.m4
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi

# Run the benchmark binary
set -e
cargo +nightly bench
cargo +nightly-2024-06-25 bench


# ^^^ TERMINATE YOUR CODE BEFORE THE BOTTOM ARGBASH MARKER ^^^
Expand Down
26 changes: 13 additions & 13 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ set -e
# We want the code to panic if there is an integer overflow
export RUSTFLAGS="-C overflow-checks=on"

cargo +nightly test --release -p jf-utils -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-plonk --lib --bins -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-merkle-tree --features gadgets -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-pcs --features test-srs -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-rescue --features gadgets -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-signature --features "bls, schnorr, gadgets" -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-vid --features test-srs -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-aead -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-elgamal --features gadgets -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-vrf -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-prf -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-crhf -- -Zunstable-options --report-time
cargo +nightly test --release -p jf-commitment -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-utils -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-plonk --lib --bins -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-merkle-tree --features gadgets -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-pcs --features test-srs -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-rescue --features gadgets -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-signature --features "bls, schnorr, gadgets" -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-vid --features test-srs -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-aead -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-elgamal --features gadgets -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-vrf -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-prf -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-crhf -- -Zunstable-options --report-time
cargo +nightly-2024-06-25 test --release -p jf-commitment -- -Zunstable-options --report-time
4 changes: 2 additions & 2 deletions scripts/test_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=3 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests"
export RUSTDOCFLAGS=""
rm -vf ./target/**/*.gcda
cargo +nightly build --features "test-srs, gadgets, bls, schnorr"
cargo +nightly test --lib --features "test-srs, gadgets, bls, schnorr"
cargo +nightly-2024-06-25 build --features "test-srs, gadgets, bls, schnorr"
cargo +nightly-2024-06-25 test --lib --features "test-srs, gadgets, bls, schnorr"
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing $IGNORED_FILES -o ./target/debug/coverage/
echo "Coverage report available at target/debug/coverage/index.html."

0 comments on commit f8fa50d

Please sign in to comment.