build(deps): update aws-sdk-kms requirement from 0.31 to 1.5 #204
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
RUSTFLAGS: -Dwarnings | |
jobs: | |
test: | |
name: Test on rust ${{matrix.rust}} (keys ${{ matrix.key_feature_set }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [1.67, stable, nightly] | |
key_feature_set: | |
- key_openssl_pkey | |
- key_kms | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust}} | |
- run: | | |
cargo test --all --no-default-features --features ${{ matrix.key_feature_set }} \ | |
-- --skip sign::tests::kms # Requires AWS creds, skip them | |
test_fedora: | |
name: Test on Fedora | |
runs-on: ubuntu-latest | |
container: fedora:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
dnf install -y \ | |
tpm2-tss-devel \ | |
swtpm swtpm-tools \ | |
rust cargo clippy | |
- name: Start swtpm | |
run: | | |
mkdir /tmp/tpmdir | |
swtpm_setup --tpm2 \ | |
--tpmstate /tmp/tpmdir \ | |
--createek --decryption --create-ek-cert \ | |
--create-platform-cert \ | |
--display | |
swtpm socket --tpm2 \ | |
--tpmstate dir=/tmp/tpmdir \ | |
--flags startup-clear \ | |
--ctrl type=tcp,port=2322 \ | |
--server type=tcp,port=2321 \ | |
--daemon | |
- name: Run tests | |
run: | | |
TCTI=swtpm: cargo test --features key_tpm,key_openssl_pkey | |
- name: Run clippy | |
run: | | |
cargo clippy --features key_tpm,key_openssl_pkey --all | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: rustup component add clippy | |
- run: cargo clippy --all | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: rustup component add rustfmt | |
- run: cargo fmt --all -- --check |