Skip to content

Commit

Permalink
macos-12 runner is deprecated
Browse files Browse the repository at this point in the history
See actions/runner-images#10721

Newer runner does not include Tcl/Tk or SWIG, so we have to add these to the
setup.
  • Loading branch information
garfieldnate committed Jan 8, 2025
1 parent e474888 commit 0565c41
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build, test and upload executables to GitHub
# depends on pre-installed software; see image definitions:
# - https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2404-Readme.md
# - https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
# - https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
# We use these tools from the runner images: git, gcc/XCode/MSVC, swig, Tcl/Tk on MacOS, pkg-config

# TODO: not building svs_viewer ('Cannot find GL, GLU, not building svs_viewer' and 'Cannot find opengl32, glu32, not building svs_viewer')
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
# Use v24 beta for now to get newer SWIG; TODO: change back to ubuntu-latest once it points to v24
ubuntu-24.04,
# latest available X86_64 target
macos-12,
macos-15,
# latest is ARM
macos-latest,
]
Expand All @@ -56,12 +56,12 @@ jobs:
if: startsWith(matrix.os, 'ubuntu-')
run: sudo apt-get update && sudo apt-get install tcl-dev

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

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

- name: build
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
# 20.04 to preserve compatibility with testing stage
ubuntu-20.04,
# latest available X86_64 target
macos-12,
macos-15,
# latest is ARM
macos-latest,

Expand Down Expand Up @@ -318,8 +318,8 @@ jobs:
# if: matrix.os == 'macos-latest'
# run: brew install tcl-tk

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

- name: Setup SWIG (windows-latest)
Expand Down Expand Up @@ -371,7 +371,7 @@ jobs:
# linux target which supports all python versions we want to install for
- ubuntu-20.04
# latest available X86_64 target
- macos-12
- macos-15
# latest is ARM
- macos-latest
- windows-latest
Expand Down

0 comments on commit 0565c41

Please sign in to comment.