mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-22 08:49:30 +01:00
Add initial attempt at composite Actions logic
This commit is contained in:
parent
4138c80a33
commit
f51b131c6b
1 changed files with 17 additions and 0 deletions
17
action.yml
Normal file
17
action.yml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
name: rustup
|
||||||
|
author: David Tolnay
|
||||||
|
description: Install the Rust toolchain
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
toolchain:
|
||||||
|
description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: rustup toolchain install ${{inputs.toolchain}}
|
||||||
|
run: rustup toolchain install ${{inputs.toolchain}} --profile minimal --no-self-update
|
||||||
|
shell: bash
|
||||||
|
- run: rustup default ${{inputs.toolchain}}
|
||||||
|
shell: bash
|
Loading…
Reference in a new issue