feat(ci): make rust version in ci configurable #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installs rust toolchain. In order to set/fix the version, edit lines 20 & 27. | ||
on: | ||
workflow_call: | ||
inputs: | ||
components: | ||
description: "An optional parameter that will be sent to dtolnay/rust-toolchain." | ||
required: false | ||
type: string | ||
jobs: | ||
install-rust: | ||
runs-on: starkware-ubuntu-latest-small | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install rust toolchain with given components | ||
if: "${{ inputs.components != '' }}" | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
components: ${{ inputs.components }} | ||
- name: install rust toolchain without given components | ||
if: "${{ inputs.components == '' }}" | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable |