Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Mac build architectures #197

Merged
merged 3 commits into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,21 @@ jobs:
publish_on_mac_arm64:
name: Mac arm64
needs: [delete_existing_artifacts]
runs-on: [self-hosted, macOS, ARM64]
runs-on: macos-latest
steps:
- name: Check runner architecture
shell: bash
run: |
if [[ "$(uname -m)" != "arm64" ]]; then
echo "Runner architecture does not match specified architecture"
exit 1
fi
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Python setuptools
run: brew install python-setuptools
- name: Install dependencies
run: npm install
- name: Setup code signing
Expand Down Expand Up @@ -157,8 +166,15 @@ jobs:
publish_on_mac:
name: Mac x64
needs: [delete_existing_artifacts]
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Check runner architecture
shell: bash
run: |
if [[ "$(uname -m)" != "x86_64" ]]; then
echo "Runner architecture does not match specified architecture"
exit 1
fi
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
Expand Down