Skip to content

Update dependency rust to v1.84.1 #369

Update dependency rust to v1.84.1

Update dependency rust to v1.84.1 #369

Workflow file for this run

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