Skip to content

Update actions/cache to v4. #76

Update actions/cache to v4.

Update actions/cache to v4. #76

Workflow file for this run

name: CI
on:
push: { branches: "main" }
pull_request: { branches: "*" }
jobs:
build_and_test:
name: ${{ matrix.os }}, rust-${{ matrix.rust }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable, nightly, 1.65.0]
runs-on: ${{ matrix.os }}
steps:
- name: Restore cached crates.io index
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-rust-${{ matrix.rust }}
save-always: true
- name: Checkout code
uses: actions/checkout@master
- name: Install Rust ${{ matrix.rust }}
run: |
rustup install ${{ matrix.rust }} --profile minimal
rustup default ${{ matrix.rust }}
- name: Build
run: cargo build --release --all-features --color=always
- name: Test
run: cargo test --release --all-features --color=always