Skip to content

Commit

Permalink
frodo-kem: use set-msrv in CI (#96)
Browse files Browse the repository at this point in the history
We previously weren't testing on MSRV.

This uses `set-msrv` + a CI matrix with `stable` to do that, which also
clears the way towards running `cross`
  • Loading branch information
tarcieri authored Jan 21, 2025
1 parent ee0b68f commit 17811e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/frodo-kem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,42 @@ defaults:
shell: bash

jobs:
set-msrv:
uses: RustCrypto/actions/.github/workflows/set-msrv.yml@master
with:
msrv: 1.82.0

build:
needs: set-msrv
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- ${{ needs.set-msrv.outputs.msrv }}
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: ${{ matrix.rust }}
- run: cargo build --no-default-features --features=frodo
- run: cargo build --no-default-features --features=efrodo
- run: cargo build --no-default-features || [ $? -eq 101 ]
- run: cargo build --all-features

test:
needs: set-msrv
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- ${{ needs.set-msrv.outputs.msrv }}
- stable
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: ${{ matrix.rust }}
- run: cargo build --all-features --benches --release --keep-going
- run: cargo test --all-features --release
- run: cargo test --no-default-features --features=frodo,efrodo,serde --release
Expand Down
1 change: 1 addition & 0 deletions frodo-kem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exclude = ["tests/**", "bench/**", "examples/**", ".github/**"]
license = "Apache-2.0 OR MIT"
readme = "README.md"
edition = "2021"
rust-version = "1.82"

[features]
default = [
Expand Down

0 comments on commit 17811e5

Please sign in to comment.