-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rust toolchain version in workflows (#303)
- Loading branch information
1 parent
832353b
commit 8fa60a0
Showing
4 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Install Rust | ||
description: Install the Rust toolchain | ||
|
||
inputs: | ||
components: | ||
description: Comma-separated list of components to be additionally installed | ||
required: false | ||
targets: | ||
description: Comma-separated list of target triples to install for this toolchain | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Set toolchain | ||
run: echo "RUST_TOOLCHAIN=$(cat rust-toolchain)" >> $GITHUB_ENV | ||
shell: bash | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
components: ${{ inputs.components }} | ||
targets: ${{ inputs.targets }} | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,10 +41,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
uses: ./.github/actions/rust-toolchain | ||
with: | ||
toolchain: 1.83.0 | ||
target: ${{ matrix.target }} | ||
targets: ${{ matrix.target }} | ||
- uses: bahmutov/[email protected] | ||
- uses: Swatinem/rust-cache@v2 | ||
if: ${{ inputs.type != 'latest' }} | ||
|
@@ -87,11 +86,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.83.0 | ||
profile: minimal | ||
override: true | ||
uses: ./.github/actions/rust-toolchain | ||
- uses: bahmutov/[email protected] | ||
- name: Build native packages | ||
run: yarn build-native-${{ inputs.profile }} | ||
|
@@ -139,10 +134,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
uses: ./.github/actions/rust-toolchain | ||
with: | ||
toolchain: 1.83.0 | ||
target: ${{ matrix.target }} | ||
targets: ${{ matrix.target }} | ||
- name: Install cross compile toolchains | ||
run: | | ||
sudo apt-get update | ||
|
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