Use actions-rust-cross v1 #603
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: Linting | |
on: [push, pull_request] | |
env: | |
CRATE_NAME: precious | |
GITHUB_TOKEN: ${{ github.token }} | |
RUST_BACKTRACE: 1 | |
jobs: | |
lint: | |
name: Check that code is lint clean using precious | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache cargo & target directories | |
uses: Swatinem/rust-cache@v2 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "J. Doe" | |
- name: Install mise | |
run: | | |
set -e | |
set -x | |
curl https://mise.run | sh | |
mise install | |
- name: Run precious | |
run: | | |
mise exec -- precious lint -a |