Skip to content

Commit

Permalink
Add ARM MacOS builder to build workflow (#1948)
Browse files Browse the repository at this point in the history
Also add the machine identifier to the exported addon name.
  • Loading branch information
OmarEmaraDev authored Feb 10, 2024
1 parent 5aff952 commit df5388c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest, macos-14]
python: ['3.11']
steps:
- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import json
import textwrap
import platform
import subprocess
from pprint import pprint

Expand Down Expand Up @@ -36,8 +37,8 @@
elif onWindows: currentOS = "windows"
elif onMacOS: currentOS = "macOS"
addonVersion = getAddonVersion(initPath)
exportName = "{}_v{}_{}_{}_py{}{}".format(
addonName, *addonVersion[:2], currentOS, *sys.version_info[:2])
exportName = "{}_v{}_{}_{}_{}_py{}{}".format(
addonName, *addonVersion[:2], currentOS, platform.machine(), *sys.version_info[:2])

exportPath = os.path.join(currentDirectory, exportName + ".zip")
exportCPath = os.path.join(currentDirectory, "{}_c.zip".format(addonName))
Expand Down

0 comments on commit df5388c

Please sign in to comment.