setup-rust-action/action.yml
2023-09-04 15:15:56 +02:00

31 lines
904 B
YAML

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
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
components:
description: The toolchain components to install, comma-separated
default: ""
targets:
description: The toolchain targets to add, comma-separated
default: ""
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 }}