add ansible tpm role #148
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
on: [push] | |
name: Rust compilation, check and test | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y tpm2-tools libtss2-dev | |
- uses: actions/checkout@v2 | |
- name: Rustup setup | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- run: rustup component add rustfmt && rustup component add clippy | |
- name: Cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Cargo check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- name: Clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings |