Update dependency rust to v1.84.1 #369
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 | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
name: dist | |
runs-on: '${{ matrix.os }}' | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
# check out our code | |
- uses: actions/checkout@v4 | |
# install rust toolchain | |
- uses: actions-rs/toolchain@v1 | |
id: rust-toolchain | |
with: | |
toolchain: stable | |
# cache the cargo registry & index | |
- name: Cache cargo outputs | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
key: ${{ runner.os }}-cargo-${{ steps.rust-toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }} | |
# cache our build outputs | |
- name: Cache build outputs | |
uses: actions/cache@v4 | |
with: | |
path: | | |
target | |
key: ${{ runner.os }}-build-${{ steps.rust-toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }} | |
# invoke our build | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
- name: Dirty worktree check | |
run: git diff HEAD --exit-code |