Skip to content

Update actions/cache #70

Update actions/cache

Update actions/cache #70

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
cargo-fuzz:
name: Cargo fuzz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-10-15
profile: minimal
override: true
- uses: actions-rs/[email protected]
with:
crate: cargo-fuzz
use-tool-cache: true
- run: .scripts/fuzz.sh
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
toolchain: nightly-2023-10-15
profile: minimal
override: true
- name: Cache cargo directories
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo target dir
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Tests
run: .scripts/tests.sh