Skip to content

Commit

Permalink
Pass --target-arch=arm64 for creating macOS package
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewis Gaul committed Nov 15, 2023
1 parent ffe4da1 commit 293a278
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Workflow for creating a release

on:
push:
branches:
- gh-actions-release-macos
tags:
- 'v*.*.*'

Expand All @@ -12,8 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
# os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@master
Expand Down
2 changes: 2 additions & 0 deletions scripts/create_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def run_pyinstaller(output_dir: pathlib.Path) -> None:
"package/minegauler.spec",
# fmt: on
]
if Platform.current() is Platform.MACOS:
cmd.extend(["--target-arch", "arm64"])
logging.debug("Running command: %s", " ".join(shlex.quote(x) for x in cmd))
proc = subprocess.run(cmd)
if proc.returncode != 0:
Expand Down

0 comments on commit 293a278

Please sign in to comment.