blob: c2d9be54a607abcd08f66561b85f577bdd453d6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
name: Setup Rust Environment
inputs:
key:
description: Cache key
required: true
toolchain:
description: Pass-through to toolchain on actions-rs
default: stable
required: false
components:
description: Pass-through to components on actions-rs
required: false
runs:
using: composite
steps:
- uses: actions-rs/toolchain@v1
id: toolchain-install
with:
profile: minimal
override: true
toolchain: ${{ inputs.toolchain }}
components: ${{ inputs.components }}
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ inputs.key }}-${{ runner.os }}-${{ inputs.toolchain }}-${{ steps.toolchain-install.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
restore-keys: |
${{ inputs.key }}-${{ runner.os }}-${{ inputs.toolchain }}-${{ steps.toolchain-install.outputs.rustc_hash }}-
${{ inputs.key }}-${{ runner.os }}-${{ inputs.toolchain }}-
|