Skip to content

Commit

Permalink
CI: add missing configuration files (RustCrypto#897)
Browse files Browse the repository at this point in the history
The following crates did not have a CI config (most of which are newly
merged and/or nascent):

- `cmpv2`
- `cms`
- `pkcs12`
- `x509-ocsp`
  • Loading branch information
tarcieri authored Feb 27, 2023
1 parent 36dfc68 commit 54aaa05
Show file tree
Hide file tree
Showing 7 changed files with 256 additions and 2 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/cmpv2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: cmpv2

on:
pull_request:
paths:
- ".github/workflows/cmpv2.yml"
- "const-oid/**"
- "cmpv2/**"
- "der/**"
- "spki/**"
- "x509-cert/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: cmpv2

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features arbitrary,default,std

# FIXME: Temporary disabled until https://github.com/rust-fuzz/arbitrary/issues/136 is fixed
# minimal-versions:
# uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
# with:
# working-directory: ${{ github.workflow }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack test --feature-powerset


65 changes: 65 additions & 0 deletions .github/workflows/cms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: cms

on:
pull_request:
paths:
- ".github/workflows/cms.yml"
- "const-oid/**"
- "cms/**"
- "der/**"
- "spki/**"
- "x509-cert/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: cms

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --exclude-features arbitrary,default,std

# FIXME: Temporary disabled until https://github.com/rust-fuzz/arbitrary/issues/136 is fixed
# minimal-versions:
# uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
# with:
# working-directory: ${{ github.workflow }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack test --feature-powerset


1 change: 0 additions & 1 deletion .github/workflows/crmf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
- stable
steps:
- uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/pkcs12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: pkcs12

on:
pull_request:
paths:
- ".github/workflows/pkcs12.yml"
- "base64ct/**"
- "const-oid/**"
- "der/**"
- "pem-rfc7468/**"
- "pkcs12/**"
- "spki/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: pkcs12

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack test --feature-powerset
1 change: 1 addition & 0 deletions .github/workflows/pkcs7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- "const-oid/**"
- "der/**"
- "pkcs7/**"
- "x509-cert/**"
- "Cargo.*"
push:
branches: master
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/x509-ocsp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: x509-ocsp

on:
pull_request:
paths:
- ".github/workflows/x509-ocsp.yml"
- "const-oid/**"
- "der/**"
- "x509-ocsp/**"
- "x509-cert/**"
- "Cargo.*"
push:
branches: master

defaults:
run:
working-directory: x509-ocsp

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset

minimal-versions:
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
with:
working-directory: ${{ github.workflow }}

test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.65.0 # MSRV
- stable
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack test --feature-powerset
2 changes: 1 addition & 1 deletion x509-ocsp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rust-version = "1.65"
[dependencies]
der = { version = "=0.7.0-pre", features = ["alloc", "derive", "oid"], path = "../der" }
spki = { version = "=0.7.0-pre", path = "../spki" }
x509-cert = { version = "=0.2.0-pre", path = "../x509-cert" }
x509-cert = { version = "=0.2.0-pre", default-features = false, path = "../x509-cert" }

[dev-dependencies]
const-oid = { version = "0.9", features = ["db"] } # TODO: path = "../const-oid"
Expand Down

0 comments on commit 54aaa05

Please sign in to comment.