Skip to content

Commit 18efd52

Browse files
fix: use valid Rust targets in CI workflow (#91)
1 parent 937bdf4 commit 18efd52

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/build-desktop.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626
matrix:
2727
include:
2828
- platform: macos-latest
29-
target: universal-apple-darwin
3029
name: macOS
3130
- platform: windows-latest
32-
target: x86_64-pc-windows-msvc
3331
name: Windows
3432

3533
runs-on: ${{ matrix.platform }}
@@ -47,13 +45,14 @@ jobs:
4745

4846
- name: Install Rust
4947
uses: dtolnay/rust-toolchain@stable
50-
with:
51-
targets: ${{ matrix.target }}
5248

53-
- name: Install dependencies (macOS)
49+
- name: Add Rust targets (macOS universal)
5450
if: matrix.platform == 'macos-latest'
55-
run: |
56-
rustup target add aarch64-apple-darwin x86_64-apple-darwin
51+
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
52+
53+
- name: Add Rust target (Windows)
54+
if: matrix.platform == 'windows-latest'
55+
run: rustup target add x86_64-pc-windows-msvc
5756

5857
- name: Install dependencies
5958
run: yarn install --frozen-lockfile

0 commit comments

Comments
 (0)