Automated update to Github CI to rustc 1.80.1 #14
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: Build check | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Prepare: | |
runs-on: ubuntu-latest | |
outputs: | |
rustc_version: ${{ steps.read_toolchain.outputs.rustc_version }} | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Read rustc version" | |
id: read_toolchain | |
run: echo "rustc_version=$(cat rustc-version)" >> $GITHUB_OUTPUT | |
Check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Select toolchain" | |
uses: dtolnay/rust-toolchain@stable | |
- name: "Cargo check" | |
run: cargo check | |
Clippy: | |
needs: Prepare | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Select toolchain" | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ needs.Prepare.outputs.rustc_version }} | |
- name: "Install clippy" | |
run: rustup component add clippy | |
- name: "Lint" | |
run: cargo clippy -- -D warnings |