From 252b81a1018f871ba4c8a70e4c8df260f9398439 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/slh-dsa.yml | 52 +++++++++++++++++++++++++++++++++++ slh-dsa/Cargo.toml | 13 +++++---- 2 files changed, 59 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/slh-dsa.yml diff --git a/.github/workflows/slh-dsa.yml b/.github/workflows/slh-dsa.yml new file mode 100644 index 00000000..80e21385 --- /dev/null +++ b/.github/workflows/slh-dsa.yml @@ -0,0 +1,52 @@ +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: + clippy: + 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 }} + components: clippy + - run: cargo clippy --no-default-features + - run: cargo clippy + - run: cargo clippy --all-features + + 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 + - 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"]