Skip to content

Commit 0c584e3

Browse files
committed
github workflow
1 parent 5464ec7 commit 0c584e3

1 file changed

Lines changed: 8 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ jobs:
2323
matrix:
2424
include:
2525
- platform: 'macos-latest'
26-
args: '--target aarch64-apple-darwin'
27-
- platform: 'macos-latest'
28-
args: '--target x86_64-apple-darwin'
26+
target: ''
2927
- platform: 'windows-latest'
30-
args: ''
28+
target: ''
3129

3230
runs-on: ${{ matrix.platform }}
3331
steps:
@@ -42,8 +40,6 @@ jobs:
4240

4341
- name: Setup Rust
4442
uses: dtolnay/rust-toolchain@stable
45-
with:
46-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4743

4844
- name: Rust cache
4945
uses: swatinem/rust-cache@v2
@@ -54,7 +50,7 @@ jobs:
5450
run: npm install
5551

5652
- name: Build the app
57-
run: npm run tauri:build ${{ matrix.args }}
53+
run: npm run tauri:build
5854

5955
- name: Upload artifacts (windows only)
6056
if: matrix.platform == 'windows-latest'
@@ -63,19 +59,12 @@ jobs:
6359
name: windows-artifacts
6460
path: src-tauri/target/release/bundle/
6561

66-
- name: Upload artifacts (macos aarch64)
67-
if: matrix.platform == 'macos-latest' && matrix.args == '--target aarch64-apple-darwin'
68-
uses: actions/upload-artifact@v4
69-
with:
70-
name: macos-aarch64-artifacts
71-
path: src-tauri/target/aarch64-apple-darwin/release/bundle/
72-
73-
- name: Upload artifacts (macos x86_64)
74-
if: matrix.platform == 'macos-latest' && matrix.args == '--target x86_64-apple-darwin'
62+
- name: Upload artifacts (macos)
63+
if: matrix.platform == 'macos-latest'
7564
uses: actions/upload-artifact@v4
7665
with:
77-
name: macos-x86_64-artifacts
78-
path: src-tauri/target/x86_64-apple-darwin/release/bundle/
66+
name: macos-artifacts
67+
path: src-tauri/target/release/bundle/
7968

8069
create-release:
8170
needs: test-and-build
@@ -101,7 +90,7 @@ jobs:
10190
--notes "Download the appropriate installer for your platform:
10291
10392
- **Windows**: .msi or .exe file
104-
- **macOS**: .dmg file (choose Intel or Apple Silicon)"
93+
- **macOS**: .dmg file"
10594
10695
# Upload all artifacts
10796
find artifacts -type f \( -name "*.msi" -o -name "*.exe" -o -name "*.dmg" \) -exec gh release upload ${{ github.ref_name }} {} \;

0 commit comments

Comments
 (0)