Skip to content

build(deps): update aws-smithy-runtime requirement from <=1.2 to <=1.6 #225

build(deps): update aws-smithy-runtime requirement from <=1.2 to <=1.6

build(deps): update aws-smithy-runtime requirement from <=1.2 to <=1.6 #225

Workflow file for this run

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.68.2, 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