Skip to content

Generate SBOMs for tagged commits #403

Generate SBOMs for tagged commits

Generate SBOMs for tagged commits #403

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: "sparse"
RUSTFLAGS: "-Dwarnings"
jobs:
clippy-check:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- uses: actions/checkout@v1
# Install the MSRV toolchain and clippy
- run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' enclaver/Cargo.toml >> $GITHUB_ENV
- run: rustup toolchain install $RUSTUP_TOOLCHAIN
- run: rustup component add clippy
# Check all binaries (ie a Linux build)
- uses: actions-rs/[email protected]
with:
args: --features=run_enclave,odyn --manifest-path enclaver/Cargo.toml
token: ${{ secrets.GITHUB_TOKEN }}
# Check with tracing enabled
- uses: actions-rs/[email protected]
env:
RUSTFLAGS: "-Dwarnings --cfg=tokio_unstable"
with:
args: --features=run_enclave,odyn,tracing --manifest-path enclaver/Cargo.toml
token: ${{ secrets.GITHUB_TOKEN }}
# Check with only default features (ie a Mac build)
- uses: actions-rs/[email protected]
with:
args: --manifest-path enclaver/Cargo.toml
token: ${{ secrets.GITHUB_TOKEN }}
## TODO: Add test job here?