Skip to content

chore: pin Rust toolchain to 1.95.0 #103

chore: pin Rust toolchain to 1.95.0

chore: pin Rust toolchain to 1.95.0 #103

Workflow file for this run

name: CI
on:
push:
branches: ["main", "sandcastle/**"]
pull_request:
branches: ["main"]
jobs:
rust:
name: Rust build & test
runs-on: ubuntu-latest
defaults:
run:
working-directory: zigzag
steps:
- uses: actions/checkout@v4
- name: Install Rust 1.95.0
uses: dtolnay/rust-toolchain@1.95.0
with:
components: clippy, rustfmt
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
zigzag/target
key: ${{ runner.os }}-cargo-${{ hashFiles('zigzag/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --all
- name: Test
run: cargo test --all