Add initial attempt at composite Actions logic

This commit is contained in:
David Tolnay 2021-10-09 02:41:42 +01:00
parent 4138c80a33
commit f51b131c6b
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

17
action.yml Normal file
View 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