Fixes 812 (#813) #1678
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: Rust | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
NAME: "Rust Test" | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-nd-test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 # v4 | |
- name: Setup | Rust | Nightly | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
components: clippy rustfmt | |
- uses: actions/cache@v4 | |
name: Cache Cargo Files | |
with: | |
path: | | |
target/release | |
target/debug | |
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Lint | |
run: cargo fmt -- --check |