Skip to content

Setup CI

Setup CI #1

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: "ubuntu-22.04"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Cache
uses: Swatinem/rust-cache@v2
- name: Build Debug
run: |
cargo build --workspace --all-features
- name: Build Release
run: |
cargo build --release --workspace --all-features
clippy:
runs-on: "ubuntu-22.04"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Cache
uses: Swatinem/rust-cache@v2
- name: Install Tools
run: cargo install clippy-sarif sarif-fmt
- name: Checks
run: |
cargo clippy --message-format json --workspace -- -D warnings | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true
- name: Upload Results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true