Skip to content

Commit e63ae98

Browse files
committed
ci: update macOS build process to support universal binaries
Added support for building universal macOS binaries in the release workflow by adding necessary targets and updating paths for DMG artifacts. This change enhances compatibility across different macOS architectures.
1 parent 6528e5d commit e63ae98

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ jobs:
9797
- name: Install Tauri CLI
9898
run: cargo install tauri-cli --version "^2"
9999

100-
- name: Build Tauri (macOS)
101-
run: cargo-tauri build --bundles dmg
100+
- name: Add universal macOS targets
101+
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
102+
103+
- name: Build Tauri (macOS universal)
104+
run: cargo-tauri build --target universal-apple-darwin --bundles dmg
102105
env:
103106
CI: true
104107

@@ -107,14 +110,14 @@ jobs:
107110
with:
108111
name: macos-builds
109112
path: |
110-
src-tauri/target/release/bundle/dmg/*.dmg
113+
src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
111114
112115
- name: Upload to release
113116
if: startsWith(github.ref, 'refs/tags/')
114117
uses: softprops/action-gh-release@v2
115118
with:
116119
files: |
117-
src-tauri/target/release/bundle/dmg/*.dmg
120+
src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
118121
119122
build-windows:
120123
runs-on: windows-latest

0 commit comments

Comments
 (0)