Skip to content

Commit

Permalink
Build on ARM Mac
Browse files Browse the repository at this point in the history
Latest MacOS github runner is ARM-based! See the announcement here:
https://github.blog/2023-10-02-introducing-the-new-apple-silicon-powered-m1-macos-larger-runner-for-github-actions/.

MacOS 14 and higher will only be provided in ARM versions from now on. The
software listed for 13 and higher
(https://github.com/actions/runner-images/blob/macOS-12/20240412.2/images/macos/macos-14-arm64-Readme.md)
does not include Tcl or SWIG, so we have to install these manually.
  • Loading branch information
garfieldnate committed May 1, 2024
1 parent 0ac8a9c commit d2f0d6a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
ubuntu-latest,
# latest available X86_64 target
macos-12,
# latest is ARM
macos-latest,
]
steps:
- name: Checkout
Expand All @@ -49,6 +51,14 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install tcl-dev

- name: Setup tcl (macos-latest)
if: matrix.os == 'macos-latest'
run: brew install tcl-tk

- name: Setup SWIG (macos-latest)
if: matrix.os == 'macos-latest'
run: brew install swig

- name: build
env:
# instructs SCons to print debug statements to stdout
Expand Down

0 comments on commit d2f0d6a

Please sign in to comment.