Skip to content

Commit

Permalink
pls
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 4, 2023
1 parent b51d2cf commit aa209dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ inputs:
components:
description: The toolchain components to install, comma-separated
default: ""
required: true
targets:
description: The toolchain targets to add, comma-separated
default: ""
required: true
runs:
using: composite
steps:
Expand Down
6 changes: 3 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
args=()

# shellcheck disable=SC2206
[[ -n "${INPUT_COMPONENTS}" ]] && args+=(-c $INPUT_COMPONENTS)
[[ -n "${INPUT_COMPONENTS}" ]] && args+=(-c ${INPUT_COMPONENTS})

# shellcheck disable=SC2206
[[ -n "${INPUT_TARGETS}" ]] && args+=(-t $INPUT_TARGETS)
[[ -n "${INPUT_TARGETS}" ]] && args+=(-t ${INPUT_TARGETS})

rustup toolchain install $INPUT_RUST_VERSION "${args[@]}"
rustup toolchain install ${INPUT_RUST_VERSION} "${args[@]}"

# shellcheck disable=SC2129
echo "rustup_version=$(rustup --version)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit aa209dd

Please sign in to comment.