Skip to content

improve cache behavior #68

improve cache behavior

improve cache behavior #68

Workflow file for this run

name: static-check
on:
push:
branches:
- main
pull_request:
jobs:
static-check:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
extra_nix_config: 'experimental-features = nix-command flakes'
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Check formatting
run: nix develop -c cargo fmt --check
- name: Run linting
run: nix develop -c cargo clippy
- name: Run tests
run: nix develop -c cargo test --locked --frozen --all-features
static-check-windows:
strategy:
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Check formatting
run: cargo fmt --check
- name: Run linting
run: cargo clippy
- name: Run tests
run: cargo test --locked --frozen --all-features