Skip to content

Commit 83e5d57

Browse files
committed
add CI
1 parent 0a99489 commit 83e5d57

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/workflows/kbkdf.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: kbkdf
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "kbkdf/**"
7+
- "Cargo.*"
8+
push:
9+
branches: master
10+
11+
defaults:
12+
run:
13+
working-directory: kbkdf
14+
15+
env:
16+
CARGO_INCREMENTAL: 0
17+
RUSTFLAGS: "-Dwarnings"
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
rust:
25+
- 1.65.0 # MSRV
26+
- stable
27+
target:
28+
- thumbv7em-none-eabi
29+
- wasm32-unknown-unknown
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: RustCrypto/actions/cargo-cache@master
33+
- uses: dtolnay/rust-toolchain@master
34+
with:
35+
toolchain: ${{ matrix.rust }}
36+
targets: ${{ matrix.target }}
37+
- run: cargo build --no-default-features --target ${{ matrix.target }}
38+
39+
minimal-versions:
40+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
41+
with:
42+
working-directory: ${{ github.workflow }}
43+
44+
test:
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
rust:
49+
- 1.65.0 # MSRV
50+
- stable
51+
steps:
52+
- uses: actions/checkout@v4
53+
- uses: RustCrypto/actions/cargo-cache@master
54+
- uses: dtolnay/rust-toolchain@master
55+
with:
56+
toolchain: ${{ matrix.rust }}
57+
- run: cargo check --all-features
58+
- run: cargo test --no-default-features
59+
- run: cargo test
60+
- run: cargo test --all-features

kbkdf/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)"
1010
keywords = ["crypto", "HKDF", "KDF"]
1111
categories = ["cryptography", "no-std"]
1212
readme = "README.md"
13+
rust-version = "1.65"
1314

1415
[dependencies]
1516
digest = "0.10"

0 commit comments

Comments
 (0)