Skip to content

Commit 4e6cca0

Browse files
authored
ci: enable minimal-versions jobs (#2293)
1 parent d5e919f commit 4e6cca0

12 files changed

Lines changed: 50 additions & 71 deletions

.github/workflows/aead.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: aead
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/aead.yml"
67
- "aead/**"
78
- "Cargo.*"
89
push:
@@ -47,11 +48,10 @@ jobs:
4748
# - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features heapless
4849
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features rand_core
4950

50-
# TODO(tarcieri): re-enable after next `crypto-common` release
51-
# minimal-versions:
52-
# uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
53-
# with:
54-
# working-directory: ${{ github.workflow }}
51+
minimal-versions:
52+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
53+
with:
54+
working-directory: ${{ github.workflow }}
5555

5656
test:
5757
runs-on: ubuntu-latest

.github/workflows/cipher.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,10 @@ jobs:
4444
- run: cargo build --target ${{ matrix.target }} --features rand_core
4545
- run: cargo build --target ${{ matrix.target }} --features block-padding
4646

47-
# TODO: use the reusable workflow after this crate will be part of the
48-
# root workspace
4947
minimal-versions:
50-
if: false # disabled until we stop using pre-releases
51-
runs-on: ubuntu-latest
52-
steps:
53-
- uses: actions/checkout@v6
54-
- uses: RustCrypto/actions/cargo-cache@master
55-
- uses: dtolnay/rust-toolchain@nightly
56-
- uses: RustCrypto/actions/cargo-hack-install@master
57-
- run: cargo update -Z minimal-versions
58-
- uses: dtolnay/rust-toolchain@stable
59-
- run: cargo hack test --release --feature-powerset
48+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
49+
with:
50+
working-directory: ${{ github.workflow }}
6051

6152
test:
6253
runs-on: ubuntu-latest

.github/workflows/crypto-common.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: crypto-common
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/crypto-common.yml"
67
- "crypto-common/**"
78
- "Cargo.*"
89
push:
@@ -41,11 +42,10 @@ jobs:
4142
targets: ${{ matrix.target }}
4243
- run: cargo build --target ${{ matrix.target }}
4344

44-
# TODO(tarcieri): re-enable when `getrandom` has a crate release with `sys_rng`
45-
# minimal-versions:
46-
# uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
47-
# with:
48-
# working-directory: ${{ github.workflow }}
45+
minimal-versions:
46+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
47+
with:
48+
working-directory: ${{ github.workflow }}
4949

5050
test:
5151
runs-on: ubuntu-latest

.github/workflows/crypto.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: crypto
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/crypto.yml"
67
- "crypto/**"
78
- "Cargo.*"
89
push:
@@ -44,17 +45,9 @@ jobs:
4445
--features aead,cipher,digest,elliptic-curve,signature,universal-hash
4546

4647
minimal-versions:
47-
if: false # disabled until we stop using pre-releases
48-
runs-on: ubuntu-latest
49-
steps:
50-
- uses: actions/checkout@v6
51-
- uses: RustCrypto/actions/cargo-cache@master
52-
- uses: dtolnay/rust-toolchain@master
53-
with:
54-
toolchain: nightly
55-
- uses: RustCrypto/actions/cargo-hack-install@master
56-
- run: cargo update -Z minimal-versions
57-
- run: cargo hack test --release --feature-powerset
48+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
49+
with:
50+
working-directory: ${{ github.workflow }}
5851

5952
test:
6053
runs-on: ubuntu-latest

.github/workflows/digest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: digest
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/digest.yml"
67
- "digest/**"
78
- "Cargo.*"
89
push:
@@ -41,11 +42,10 @@ jobs:
4142
targets: ${{ matrix.target }}
4243
- run: cargo build --target ${{ matrix.target }}
4344

44-
# TODO(tarcieri): re-enable after next `crypto-common` release
45-
#minimal-versions:
46-
# uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
47-
# with:
48-
# working-directory: ${{ github.workflow }}
45+
minimal-versions:
46+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
47+
with:
48+
working-directory: ${{ github.workflow }}
4949

5050
test:
5151
runs-on: ubuntu-latest

.github/workflows/elliptic-curve.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,12 @@ jobs:
6262
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,digest,ecdh,pem,pkcs8,sec1,serde
6363

6464
minimal-versions:
65-
# Temporarily disabled until elliptic-curve 0.14.0 is published
66-
if: false
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: actions/checkout@v6
70-
- uses: RustCrypto/actions/cargo-cache@master
71-
- uses: dtolnay/rust-toolchain@master
72-
with:
73-
toolchain: nightly
74-
- uses: RustCrypto/actions/cargo-hack-install@master
75-
- run: cargo update -Z minimal-versions
76-
- run: cargo +stable build --release --all-features
65+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
66+
with:
67+
working-directory: ${{ github.workflow }}
68+
stable-cmd: |
69+
cargo hack check --feature-powerset --no-dev-deps --skip basepoint-table
70+
cargo check --all-features
7771
7872
test:
7973
runs-on: ubuntu-latest

.github/workflows/kdf.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: kdf
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/kdf.yml"
67
- "kdf/**"
78
- "Cargo.*"
89
push:
@@ -36,6 +37,11 @@ jobs:
3637
targets: ${{ matrix.target }}
3738
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
3839

40+
minimal-versions:
41+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
42+
with:
43+
working-directory: ${{ github.workflow }}
44+
3945
test:
4046
runs-on: ubuntu-latest
4147
strategy:

.github/workflows/kem.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: kem
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/kem.yml"
67
- "kem/**"
78
- "Cargo.*"
89
push:
@@ -41,6 +42,11 @@ jobs:
4142
targets: ${{ matrix.target }}
4243
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
4344

45+
minimal-versions:
46+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
47+
with:
48+
working-directory: ${{ github.workflow }}
49+
4450
test:
4551
runs-on: ubuntu-latest
4652
strategy:

.github/workflows/password-hash.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: password-hash
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/password-hash.yml"
67
- "password-hash/**"
78
- "Cargo.*"
89
push:
@@ -42,19 +43,10 @@ jobs:
4243
- uses: RustCrypto/actions/cargo-hack-install@master
4344
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features getrandom
4445

45-
# TODO: use the reusable workflow after this crate will be part of the root workspace
4646
minimal-versions:
47-
if: false # disabled until we stop using pre-releases
48-
runs-on: ubuntu-latest
49-
steps:
50-
- uses: actions/checkout@v6
51-
- uses: RustCrypto/actions/cargo-cache@master
52-
- uses: dtolnay/rust-toolchain@master
53-
with:
54-
toolchain: nightly
55-
- uses: RustCrypto/actions/cargo-hack-install@master
56-
- run: cargo update -Z minimal-versions
57-
- run: cargo hack test --release --feature-powerset
47+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
48+
with:
49+
working-directory: ${{ github.workflow }}
5850

5951
test:
6052
runs-on: ubuntu-latest

.github/workflows/signature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: signature
33
on:
44
pull_request:
55
paths:
6+
- ".github/workflows/signature.yml"
67
- "signature/**"
78
- "Cargo.*"
89
push:
@@ -44,7 +45,6 @@ jobs:
4445
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features rand_core
4546

4647
minimal-versions:
47-
if: false # disabled until we stop using pre-releases
4848
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4949
with:
5050
working-directory: ${{ github.workflow }}

0 commit comments

Comments
 (0)