2023-09-04 12:16:29 +00:00
|
|
|
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:
|
2023-09-04 12:16:29 +00:00
|
|
|
description: The toolchain version; such as stable, nightly, or 1.8.0
|
|
|
|
default: stable
|
2023-09-04 13:15:56 +00:00
|
|
|
profile:
|
|
|
|
description: The toolchain profile to install
|
|
|
|
default: default
|
2019-09-04 10:58:20 +00:00
|
|
|
components:
|
2023-09-04 12:16:29 +00:00
|
|
|
description: The toolchain components to install, comma-separated
|
|
|
|
default: ""
|
2019-09-18 15:08:24 +00:00
|
|
|
targets:
|
2023-09-04 12:16:29 +00:00
|
|
|
description: The toolchain targets to add, comma-separated
|
|
|
|
default: ""
|
2019-08-15 17:16:59 +00:00
|
|
|
runs:
|
2023-09-04 12:16:29 +00:00
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- id: setup
|
|
|
|
run: '"${GITHUB_ACTION_PATH%/}/setup.sh"'
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
INPUT_RUST_VERSION: ${{ inputs.rust-version }}
|
2023-09-04 13:15:56 +00:00
|
|
|
INPUT_PROFILE: ${{ inputs.profile }}
|
2023-09-04 12:16:29 +00:00
|
|
|
INPUT_COMPONENTS: ${{ inputs.components }}
|
|
|
|
INPUT_TARGETS: ${{ inputs.targets }}
|