Skip to content

Commit 2908ba9

Browse files
committed
perf: using macos intel runner
1 parent 9c71977 commit 2908ba9

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,12 @@ jobs:
114114
include:
115115
- platform: "macos-latest" # for Arm based macs (M1 and above).
116116
target: "aarch64-apple-darwin"
117-
args: "--target aarch64-apple-darwin"
118-
- platform: "macos-latest" # for Intel based macs.
117+
- platform: "macos-15-intel" # for Intel based macs.
119118
target: "x86_64-apple-darwin"
120-
args: "--target x86_64-apple-darwin"
121119
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
122120
target: "linux-amd64"
123-
args: ""
124121
- platform: "windows-latest"
125122
target: "windows-amd64"
126-
args: ""
127123

128124
runs-on: ${{ matrix.platform }}
129125
env:
@@ -141,7 +137,7 @@ jobs:
141137
path: go-client/build/
142138

143139
- name: Import Apple Developer Certificate
144-
if: matrix.platform == 'macos-latest'
140+
if: startsWith(matrix.platform, 'macos')
145141
env:
146142
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
147143
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
@@ -168,7 +164,7 @@ jobs:
168164
echo "Found $IDENTITY_COUNT valid code signing identity/identities"
169165
170166
- name: Verify Certificate
171-
if: matrix.platform == 'macos-latest'
167+
if: startsWith(matrix.platform, 'macos')
172168
run: |
173169
# Try to find valid code signing certificate (Developer ID, Apple Distribution, or Apple Development)
174170
# Priority: Developer ID Application > Apple Distribution > Apple Development
@@ -251,10 +247,10 @@ jobs:
251247
uses: dtolnay/rust-toolchain@stable
252248
with:
253249
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
254-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
250+
targets: ${{ startsWith(matrix.platform, 'macos') && matrix.target || '' }}
255251

256252
- name: Install system dependencies (Ubuntu)
257-
if: matrix.platform == 'ubuntu-22.04'
253+
if: startsWith(matrix.platform, 'ubuntu')
258254
run: |
259255
sudo apt-get update
260256
sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf
@@ -263,7 +259,7 @@ jobs:
263259
run: pnpm install
264260

265261
- name: Sign embedded Go client binary (macOS only)
266-
if: matrix.platform == 'macos-latest'
262+
if: startsWith(matrix.platform, 'macos')
267263
env:
268264
APPLE_SIGNING_IDENTITY: ${{ env.APPLE_SIGNING_IDENTITY }}
269265
run: |

0 commit comments

Comments
 (0)