setup-rust-action/action.yml

31 lines
904 B
YAML
Raw Normal View History

name: Set up a Rust toolchain
description: Install a specific Rust toolchain and add it to the PATH
author: Héctor Ramón Jiménez <hector@hecrj.dev>
branding:
icon: package
color: blue
2019-08-15 17:29:30 +00:00
inputs:
rust-version:
description: The toolchain version; such as stable, nightly, or 1.8.0
default: stable
profile:
description: The toolchain profile to install
default: default
2019-09-04 10:58:20 +00:00
components:
description: The toolchain components to install, comma-separated
default: ""
2019-09-18 15:08:24 +00:00
targets:
description: The toolchain targets to add, comma-separated
default: ""
2019-08-15 17:16:59 +00:00
runs:
using: composite
steps:
- id: setup
run: '"${GITHUB_ACTION_PATH%/}/setup.sh"'
shell: bash
env:
INPUT_RUST_VERSION: ${{ inputs.rust-version }}
INPUT_PROFILE: ${{ inputs.profile }}
INPUT_COMPONENTS: ${{ inputs.components }}
INPUT_TARGETS: ${{ inputs.targets }}