Generate SBOMs for tagged commits #401
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, pull_request] | |
env: | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: "sparse" | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
clippy-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Parse MSRV | |
run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' enclaver/Cargo.toml >> $GITHUB_ENV | |
- name: Install Rust Toolchain | |
run: rustup toolchain install $RUSTUP_TOOLCHAIN | |
- name: Install Clippy and Rustfmt | |
run: rustup component add clippy rustfmt | |
- name: Check with default features | |
run: | | |
cargo clippy --quiet --no-deps --manifest-path enclaver/Cargo.toml | |
- name: Check all binaries | |
run: | | |
cargo clippy --quiet --no-deps --manifest-path enclaver/Cargo.toml --features=run_enclave,odyn | |
- name: Check with tracing enabled | |
env: | |
RUSTFLAGS: "--cfg=tokio_unstable" | |
run: | | |
cargo clippy --quiet --no-deps --manifest-path enclaver/Cargo.toml --features=run_enclave,odyn,tracing | |
## TODO: Add test job here? |