Skip to content

Commit eb686f8

Browse files
Migrate to moonrepo/setup-rust (#1803)
* Migrate to moonrepo/setup-rust Co-Authored-By: yujonglee <[email protected]> * Update Rust version to 1.91.1 Co-Authored-By: yujonglee <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: yujonglee <[email protected]>
1 parent 98e5523 commit eb686f8

File tree

1 file changed

+33
-23
lines changed

1 file changed

+33
-23
lines changed
Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,50 @@
1-
name: "Install Rust Toolchain"
2-
description: "Installs Rust toolchain with platform-specific targets"
3-
41
inputs:
52
platform:
6-
description: "Target platform (macos, ios, android, windows, linux)"
73
required: false
84
default: ""
9-
105
runs:
116
using: "composite"
127
steps:
13-
- run: rustup toolchain install 1.90.0 --profile minimal --no-self-update
14-
shell: bash
158
- if: inputs.platform == 'macos'
16-
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
17-
shell: bash
9+
uses: moonrepo/setup-rust@v1
10+
with:
11+
channel: "1.91.1"
12+
targets: aarch64-apple-darwin,x86_64-apple-darwin
13+
cache-target: release
1814
- if: inputs.platform == 'ios'
19-
run: rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
20-
shell: bash
15+
uses: moonrepo/setup-rust@v1
16+
with:
17+
channel: "1.91.1"
18+
targets: aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim
19+
cache-target: release
2120
- if: inputs.platform == 'android'
22-
run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
23-
shell: bash
21+
uses: moonrepo/setup-rust@v1
22+
with:
23+
channel: "1.91.1"
24+
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
25+
cache-target: release
2426
- if: inputs.platform == 'windows'
25-
run: |
26-
rustup target add x86_64-pc-windows-msvc
27-
# https://tauri.app/distribute/sign/windows/#install-trusted-signing-cli
28-
cargo install trusted-signing-cli
29-
shell: bash
27+
uses: moonrepo/setup-rust@v1
28+
with:
29+
channel: "1.91.1"
30+
targets: x86_64-pc-windows-msvc
31+
bins: trusted-signing-cli
32+
cache-target: release
33+
env:
34+
GITHUB_TOKEN: ${{ github.token }}
35+
- if: inputs.platform == 'linux'
36+
uses: moonrepo/setup-rust@v1
37+
with:
38+
channel: "1.91.1"
39+
targets: x86_64-unknown-linux-gnu,x86_64-unknown-linux-musl,aarch64-unknown-linux-gnu
40+
cache-target: release
3041
- if: inputs.platform == 'linux'
3142
run: |
32-
rustup target add x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-gnu
3343
sudo apt-get update
3444
sudo apt-get install -y gcc-aarch64-linux-gnu libasound2-dev
3545
shell: bash
36-
- uses: Swatinem/rust-cache@v2
46+
- if: inputs.platform == ''
47+
uses: moonrepo/setup-rust@v1
3748
with:
38-
workspaces: |
39-
. -> target
40-
apps/desktop/src-tauri -> target
49+
channel: "1.91.1"
50+
cache-target: release

0 commit comments

Comments
 (0)