Skip to content

Commit

Permalink
fix: Upgrade MacOS from 12 to 14 to avoid build failure (#5670)
Browse files Browse the repository at this point in the history
mac fix attempt
  • Loading branch information
RoyalFox2140 authored Nov 4, 2024
1 parent 38eed6b commit 764d1c0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ jobs:
ext: tar.gz
content: application/gzip
- name: osx-curses-x64
os: macos-12
os: macos-14
mxe: none
tiles: 0
artifact: osx-curses-x64
ext: dmg
content: application/x-apple-diskimage
- name: osx-tiles-x64
os: macos-12
os: macos-14
mxe: none
tiles: 1
artifact: osx-tiles-x64
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:

# - title: Clang 14, macOS 12, Tiles, Sound, Localize, Lua
# compiler: clang++
# os: macos-12
# os: macos-14
# cmake: 0
# tiles: 1
# sound: 1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ jobs:
ext: tar.gz
content: application/gzip
- name: osx-curses-x64
os: macos-12
os: macos-14
mxe: none
tiles: 0
artifact: osx-curses-x64
ext: dmg
content: application/x-apple-diskimage
- name: osx-tiles-x64
os: macos-12
os: macos-14
mxe: none
tiles: 1
artifact: osx-tiles-x64
Expand Down
6 changes: 3 additions & 3 deletions build-scripts/gha_compile_only.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ then

make -j$num_jobs -C build
else
if [ "$OS" == "macos-12" ]
if [ "$OS" == "macos-14" ]
then
export NATIVE=osx
# if OSX_MIN we specify here is lower than 11 then linker is going
# to throw warnings because uncaught_exceptions, SDL and gettext libraries installed from
# Homebrew are built with minimum target osx version 11
export OSX_MIN=11
export OSX_MIN=14
else
export BACKTRACE=1
fi
make -j "$num_jobs" RELEASE=1 CCACHE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0 FRAMEWORK=1

# For CI on macOS, patch the test binary so it can find SDL2 libraries.
if [[ ! -z "$OS" && "$OS" = "macos-12" ]]
if [[ ! -z "$OS" && "$OS" = "macos-14" ]]
then
file tests/cata_test
install_name_tool -add_rpath "$HOME"/Library/Frameworks tests/cata_test
Expand Down

0 comments on commit 764d1c0

Please sign in to comment.