Skip to content

Commit c7fd0b8

Browse files
authored
ci: use cargo-hack and add --release tests (#130)
As discussed in RustCrypto/meta#23
1 parent ff83ab7 commit c7fd0b8

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/ansi-x963-kdf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: ansi-x963-kdf
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/ansi-x963-kdf.yml"
67
- "ansi-x963-kdf/**"
78
- "Cargo.*"
89
push:
@@ -47,7 +48,6 @@ jobs:
4748
- uses: dtolnay/rust-toolchain@master
4849
with:
4950
toolchain: ${{ matrix.rust }}
50-
- run: cargo check --all-features
51-
- run: cargo test --no-default-features
52-
- run: cargo test
53-
- run: cargo test --all-features
51+
- uses: RustCrypto/actions/cargo-hack-install@master
52+
- run: cargo hack test --feature-powerset
53+
- run: cargo test --release --all-features

.github/workflows/bake-kdf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: bake-kdf
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/bake-kdf.yml"
67
- "bake-kdf/**"
78
- "Cargo.*"
89
push:
@@ -47,7 +48,6 @@ jobs:
4748
- uses: dtolnay/rust-toolchain@master
4849
with:
4950
toolchain: ${{ matrix.rust }}
50-
- run: cargo check --all-features
51-
- run: cargo test --no-default-features
52-
- run: cargo test
53-
- run: cargo test --all-features
51+
- uses: RustCrypto/actions/cargo-hack-install@master
52+
- run: cargo hack test --feature-powerset
53+
- run: cargo test --release --all-features

.github/workflows/concat-kdf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: concat-kdf
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/concat-kdf.yml"
67
- "concat-kdf/**"
78
- "Cargo.*"
89
push:
@@ -47,7 +48,6 @@ jobs:
4748
- uses: dtolnay/rust-toolchain@master
4849
with:
4950
toolchain: ${{ matrix.rust }}
50-
- run: cargo check --all-features
51-
- run: cargo test --no-default-features
52-
- run: cargo test
53-
- run: cargo test --all-features
51+
- uses: RustCrypto/actions/cargo-hack-install@master
52+
- run: cargo hack test --feature-powerset
53+
- run: cargo test --release --all-features

.github/workflows/hkdf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: hkdf
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/hkdf.yml"
67
- "hkdf/**"
78
- "Cargo.*"
89
push:
@@ -56,7 +57,6 @@ jobs:
5657
- uses: dtolnay/rust-toolchain@master
5758
with:
5859
toolchain: ${{ matrix.rust }}
59-
- run: cargo check --all-features
60-
- run: cargo test --no-default-features
61-
- run: cargo test
62-
- run: cargo test --all-features
60+
- uses: RustCrypto/actions/cargo-hack-install@master
61+
- run: cargo hack test --feature-powerset
62+
- run: cargo test --release --all-features

.github/workflows/kbkdf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: kbkdf
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/kbkdf.yml"
67
- "kbkdf/**"
78
- "Cargo.*"
89
push:
@@ -55,7 +56,6 @@ jobs:
5556
- uses: dtolnay/rust-toolchain@master
5657
with:
5758
toolchain: ${{ matrix.rust }}
58-
- run: cargo check --all-features
59-
- run: cargo test --no-default-features
60-
- run: cargo test
61-
- run: cargo test --all-features
59+
- uses: RustCrypto/actions/cargo-hack-install@master
60+
- run: cargo hack test --feature-powerset
61+
- run: cargo test --release --all-features

0 commit comments

Comments
 (0)