CI? #2
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
name: Checks | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
jobs: | |
build_and_test: | |
name: Rust project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt clippy | |
- name: cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Cargo build | |
run: cargo build --locked --no-default-features # I don't want to download an ortruntime so | |
- name: Cargo test | |
run: cargo test --locked --no-default-features | |
- name: Rustfmt | |
run: cargo fmt --check | |
- name: Clippy | |
run: cargo clippy |