Skip to content

ci: Added more directories to cache #21

ci: Added more directories to cache

ci: Added more directories to cache #21

Workflow file for this run

name: Build
on:
push:
paths:
- '**.rs'
- '.github/workflows/**.yml'
pull_request:
paths:
- '**.rs'
- '.github/workflows/**.yml'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- --lib
- --bins
- --examples
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-build-${{ hashFiles('Cargo.lock') }}
restore-keys: |
cargo-build-${{ hashFiles('Cargo.lock') }}
cargo-build-
cargo-
- name: build
run: cargo build --release ${{ matrix.target }} --keep-going --verbose
- name: Debug $CARGO_HOME
run: echo $CARGO_HOME