This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
chore(deps): update rust crate gilrs to 0.10.4 #21
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 CI - Build & Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- '**.rs' | |
- '**/Cargo.toml' | |
- '**/cargo.lock' | |
jobs: | |
build: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cargo Cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml') }} | |
restore-keys: | | |
${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml') }} | |
${{ runner.os }}-cargo | |
- name: Cargo Target Cache | |
uses: actions/cache@v3 | |
with: | |
path: back/target | |
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.toml') }} | |
restore-keys: | | |
${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.toml') }} | |
${{ runner.os }}-cargo-target | |
- name: Build | |
run: cargo build --manifest-path back/Cargo.toml --verbose | |
- name: Run tests | |
run: cargo test --manifest-path back/Cargo.toml --verbose | |
- name: Run linter | |
run: cargo fmt --manifest-path back/Cargo.toml --all | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: ✨ Apply cargo fmt linter |