From f24b060f36bc56e2e97fa96b6cd61763a6a9a3d0 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 15 Apr 2024 09:19:52 -0600 Subject: [PATCH] slh-dsa: CI configuration --- .github/workflows/lms.yml | 17 ----------------- .github/workflows/slh-dsa.yml | 35 +++++++++++++++++++++++++++++++++++ slh-dsa/Cargo.toml | 13 +++++++------ 3 files changed, 42 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/slh-dsa.yml diff --git a/.github/workflows/lms.yml b/.github/workflows/lms.yml index 39a3d94b..9e25581a 100644 --- a/.github/workflows/lms.yml +++ b/.github/workflows/lms.yml @@ -17,23 +17,6 @@ env: RUSTFLAGS: "-Dwarnings" jobs: - clippy: - runs-on: ubuntu-latest - strategy: - matrix: - rust: - - 1.73.0 # MSRV - - stable - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.rust }} - components: clippy - - run: cargo clippy --no-default-features - - run: cargo clippy - - run: cargo clippy --all-features - test: runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/slh-dsa.yml b/.github/workflows/slh-dsa.yml new file mode 100644 index 00000000..9faa3625 --- /dev/null +++ b/.github/workflows/slh-dsa.yml @@ -0,0 +1,35 @@ +name: slh-dsa +on: + pull_request: + paths: + - ".github/workflows/slh-dsa.yml" + - "slh-dsa/**" + - "Cargo.*" + push: + branches: master + +defaults: + run: + working-directory: slh-dsa + +env: + CARGO_INCREMENTAL: 0 + RUSTFLAGS: "-Dwarnings" + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - 1.75.0 # MSRV + - stable + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ matrix.rust }} + - run: cargo check --all-features + # - run: cargo test --no-default-features TODO + - run: cargo test + - run: cargo test --all-features diff --git a/slh-dsa/Cargo.toml b/slh-dsa/Cargo.toml index bc3c763e..6fc77616 100644 --- a/slh-dsa/Cargo.toml +++ b/slh-dsa/Cargo.toml @@ -2,21 +2,22 @@ name = "slh-dsa" version = "0.0.1" edition = "2021" +rust-version = "1.75" [dependencies] -hybrid-array = {version = "0.2.0-rc.8", features = ["extra-sizes"]} -typenum = {version = "1.17.0", features = ["const-generics"]} +hybrid-array = { version = "0.2.0-rc.8", features = ["extra-sizes"] } +typenum = { version = "1.17.0", features = ["const-generics"] } sha3 = "0.10.8" zerocopy = "0.7.32" zerocopy-derive = "0.7.32" -rand_core = {version = "0.6.4"} -signature = {version = "2.3.0-pre.0", features = ["rand_core"]} +rand_core = { version = "0.6.4" } +signature = { version = "2.3.0-pre.0", features = ["rand_core"] } hmac = "0.12.1" sha2 = "0.10.8" digest = "0.10.7" [dev-dependencies] -hex-literal = "0.4.1" +hex-literal = "0.4.1" hex = "0.4.1" num-bigint = "0.4.4" quickcheck = "1" @@ -39,4 +40,4 @@ harness = false [features] alloc = [] -default = ["alloc"] \ No newline at end of file +default = ["alloc"]