Skip to content

Commit

Permalink
1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
huming2207 committed Oct 16, 2024
1 parent 4868bc0 commit 62eeeff
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/actions/setup-rust/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Setup Rust'
description: 'Set up the Rust toolchain'
inputs:
targets:
description: 'The target to install'
required: true
components:
description: 'The components to install'
required: false
runs:
using: 'composite'
steps:
- name: Print rustup toolchain version
shell: bash
id: rustup-version
run: |
export RUST_TOOLCHAIN_VERSION="$(grep 'channel' rust-toolchain.toml | head -1 | awk -F '"' '{print $2}')"
echo "Rust toolchain version: $RUST_TOOLCHAIN_VERSION"
echo "RUST_TOOLCHAIN_VERSION=$RUST_TOOLCHAIN_VERSION" >> "$GITHUB_OUTPUT"
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ inputs.targets }}
toolchain: ${{ steps.rustup-version.outputs.RUST_TOOLCHAIN_VERSION }}
components: ${{ inputs.components }}

0 comments on commit 62eeeff

Please sign in to comment.