From 4c1bc0eb6a3c4d6af24b92ea34f0303d6516e95d Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 21 Jan 2025 12:58:54 -0700 Subject: [PATCH] frodo-kem: use `set-msrv` in CI 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` --- .github/workflows/frodo-kem.yml | 21 +++++++++++++++++++-- frodo-kem/Cargo.toml | 1 + 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/frodo-kem.yml b/.github/workflows/frodo-kem.yml index e3648c7..f1968df 100644 --- a/.github/workflows/frodo-kem.yml +++ b/.github/workflows/frodo-kem.yml @@ -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 diff --git a/frodo-kem/Cargo.toml b/frodo-kem/Cargo.toml index 4f9b52a..e823481 100644 --- a/frodo-kem/Cargo.toml +++ b/frodo-kem/Cargo.toml @@ -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 = [