Skip to content

Commit 9f936e5

Browse files
authored
Fix Mac build architectures (#197)
1 parent d4166ac commit 9f936e5

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,21 @@ jobs:
8585
publish_on_mac_arm64:
8686
name: Mac arm64
8787
needs: [delete_existing_artifacts]
88-
runs-on: [self-hosted, macOS, ARM64]
88+
runs-on: macos-latest
8989
steps:
90+
- name: Check runner architecture
91+
shell: bash
92+
run: |
93+
if [[ "$(uname -m)" != "arm64" ]]; then
94+
echo "Runner architecture does not match specified architecture"
95+
exit 1
96+
fi
9097
- uses: actions/checkout@v4
9198
- uses: actions/setup-node@v4
9299
with:
93100
node-version: 18
101+
- name: Install Python setuptools
102+
run: brew install python-setuptools
94103
- name: Install dependencies
95104
run: npm install
96105
- name: Setup code signing
@@ -157,8 +166,15 @@ jobs:
157166
publish_on_mac:
158167
name: Mac x64
159168
needs: [delete_existing_artifacts]
160-
runs-on: macos-latest
169+
runs-on: macos-13
161170
steps:
171+
- name: Check runner architecture
172+
shell: bash
173+
run: |
174+
if [[ "$(uname -m)" != "x86_64" ]]; then
175+
echo "Runner architecture does not match specified architecture"
176+
exit 1
177+
fi
162178
- uses: actions/checkout@v4
163179
- uses: actions/setup-node@v4
164180
with:

0 commit comments

Comments
 (0)