Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
pull_request:
path:
paths:
- '**/*.rs'
- '**/*.txt'
- '**/Cargo.toml'
Expand Down
39 changes: 17 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- main
Expand All @@ -14,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
- uses: dtolnay/rust-toolchain@beta
- run: cargo build

Expand All @@ -23,27 +24,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
- uses: dtolnay/rust-toolchain@stable
- run: cargo update && cargo build --all-features

build_msrv:
name: build with MSRV (1.81)
name: build with MSRV (1.86)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
# Re-resolve Cargo.lock with minimal versions.
# This only works with nightly. We pin to a specific version because
# newer versions use lock file version 4, but the MSRV cargo does not
# support that.
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-09-20
- uses: dtolnay/rust-toolchain@nightly
- run: cargo update -Z minimal-versions
# Now check that `cargo build` works with respect to the oldest possible
# deps and the stated MSRV
- uses: dtolnay/rust-toolchain@1.81
- uses: dtolnay/rust-toolchain@1.86
- run: cargo build --all-features

# TODO: this is filling up the disk space in CI. See if there is a way to
Expand All @@ -54,7 +50,7 @@ jobs:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v6.0.2
# - uses: actions/checkout@v7.0.0
# - uses: dtolnay/rust-toolchain@stable
# - run: cargo install cargo-all-features
# # We check and then test because some test dependencies could help
Expand All @@ -69,12 +65,11 @@ jobs:
build_no_std:
name: build with no_std
runs-on: ubuntu-latest
# Skip ed448 which does not support it.
strategy:
matrix:
crate: [ristretto255, ed25519, p256, secp256k1, secp256k1-tr, rerandomized]
crate: [ed448, ristretto255, ed25519, p256, secp256k1, secp256k1-tr, rerandomized]
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
Expand All @@ -87,7 +82,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
- uses: dtolnay/rust-toolchain@beta
- run: cargo test --release --all-features

Expand All @@ -96,7 +91,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
with:
persist-credentials: false

Expand All @@ -113,7 +108,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run clippy action to produce annotations
uses: clechasseur/rs-clippy-check@v5
uses: clechasseur/rs-clippy-check@v6.0.5
if: ${{ steps.check_permissions.outputs.has-permission }}
with:
args: --all-features --all-targets -- -D warnings
Expand All @@ -127,7 +122,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
with:
persist-credentials: false

Expand All @@ -144,7 +139,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
with:
persist-credentials: false

Expand All @@ -163,7 +158,7 @@ jobs:
RUSTDOCFLAGS: -D warnings

steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
with:
persist-credentials: false

Expand All @@ -175,7 +170,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/checkout@v7.0.0
- uses: reviewdog/action-actionlint@v1.72.0
with:
level: warning
Expand Down
Loading
Loading