Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slh-dsa: CI configuration #813

Merged
merged 1 commit into from
Apr 15, 2024
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
17 changes: 0 additions & 17 deletions .github/workflows/lms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
tarcieri marked this conversation as resolved.
Show resolved Hide resolved

test:
runs-on: ubuntu-latest
strategy:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/slh-dsa.yml
Original file line number Diff line number Diff line change
@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to address this: tests fail with --no-default-features

cc @tjade273

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in #814

- run: cargo test
- run: cargo test --all-features
13 changes: 7 additions & 6 deletions slh-dsa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -39,4 +40,4 @@ harness = false

[features]
alloc = []
default = ["alloc"]
default = ["alloc"]