Skip to content

Commit 132123a

Browse files
dipankarclaude
andcommitted
ci(release): use macos-13 runner for Intel macOS builds
Cross-compiling x86_64 from Apple Silicon runners is complex because x86_64 Homebrew is not available. Use the Intel-based macos-13 runner for the x86_64-apple-darwin target instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 54f3451 commit 132123a

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
- platform: 'macos-latest'
5353
target: 'aarch64-apple-darwin'
5454
args: '--target aarch64-apple-darwin'
55-
- platform: 'macos-latest'
55+
# macos-13 is Intel-based; cross-compiling x86_64 from ARM runners
56+
# is complex due to missing x86_64 Homebrew dependencies.
57+
- platform: 'macos-13'
5658
target: 'x86_64-apple-darwin'
5759
args: '--target x86_64-apple-darwin'
5860
- platform: 'ubuntu-22.04'
@@ -81,7 +83,7 @@ jobs:
8183
uses: dtolnay/rust-toolchain@stable
8284
continue-on-error: ${{ matrix.platform == 'windows-latest' }}
8385
with:
84-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
86+
targets: ${{ (matrix.platform == 'macos-latest' || matrix.platform == 'macos-13') && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
8587

8688
- name: Verify Rust installation
8789
if: matrix.platform == 'windows-latest'
@@ -99,14 +101,6 @@ jobs:
99101
sudo apt-get update
100102
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
101103
102-
# Intel macOS cross-compilation requires x86_64 Homebrew OpenSSL
103-
- name: Install x86_64 OpenSSL (macOS Intel cross-build)
104-
if: matrix.target == 'x86_64-apple-darwin'
105-
run: |
106-
arch -x86_64 /usr/local/bin/brew install openssl@3 || true
107-
echo "OPENSSL_DIR=$(arch -x86_64 /usr/local/bin/brew --prefix openssl@3 2>/dev/null || echo /usr/local/opt/openssl@3)" >> "$GITHUB_ENV"
108-
shell: bash
109-
110104
- name: Install frontend dependencies
111105
run: npm ci
112106

@@ -126,7 +120,7 @@ jobs:
126120
uses: tauri-apps/tauri-action@v0
127121
env:
128122
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129-
CODESIGN_IDENTITY: ${{ matrix.platform == 'macos-latest' && '-' || '' }}
123+
CODESIGN_IDENTITY: ${{ (matrix.platform == 'macos-latest' || matrix.platform == 'macos-13') && '-' || '' }}
130124
with:
131125
tagName: ${{ github.ref_name }}
132126
releaseName: 'DSCode ${{ github.ref_name }}'

0 commit comments

Comments
 (0)