mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-24 18:41:06 +00:00
Add rust version to inputs
This commit is contained in:
parent
4f3d11bc2a
commit
7d1037c947
1 changed files with 6 additions and 2 deletions
|
@ -6,6 +6,10 @@ inputs:
|
|||
description: "JSON Array of targets to add to rustup"
|
||||
required: false
|
||||
default: '[]'
|
||||
rust-version:
|
||||
description: "Version of rust to install"
|
||||
required: true
|
||||
default: '1.75.0'
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
@ -27,11 +31,11 @@ runs:
|
|||
~/.cargo/git/db
|
||||
~/.rustup
|
||||
target/
|
||||
key: rust-${{ join(fromJSON(inputs.targets), '-') }}-${{ hashFiles('Cargo.toml') }}-${{ hashFiles('Cargo.lock')}}
|
||||
key: rust-${{ inputs.rust-version }}-${{ join(fromJSON(inputs.targets), '-') }}-${{ hashFiles('Cargo.toml') }}-${{ hashFiles('Cargo.lock')}}
|
||||
-
|
||||
name: Install rustup and rust
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
uses: https://github.com/dtolnay/rust-toolchain@1.75.0
|
||||
uses: https://github.com/dtolnay/rust-toolchain@${{ inputs.rust-version }}
|
||||
with:
|
||||
components: clippy
|
||||
targets: ${{ join(fromJSON(inputs.targets), ',') }}
|
||||
|
|
Loading…
Reference in a new issue