GPSBabel / gpsbabel

GPSBabel: convert, manipulate, and transfer data from GPS programs or GPS receivers. Open Source and supported on MacOS, Windows, Linux, and more. Pointy clicky GUI or a command line version...
https://www.gpsbabel.org
GNU General Public License v2.0
452 stars 125 forks source link

update macos github workflow #1265

Closed tsteven4 closed 3 months ago

tsteven4 commented 3 months ago

the macos-11 runner is deprecated. update to used macos-12, macos-13, macos-14.

the trick here is macos-14 is running on apple silicon, and the brew path depends on intel vs. apple. we solved this in two different ways: 1) in the workflow file we assume we can predict the path based on the runner architecture. we did this instead of something like brew --prefix because of the limitations of the workflow yaml. 2) in fixdoc we use command -v to search for gsed, and if found use whatever path it was found on. this works for homebrew on intel and apple silicon as well as MacPorts assuming the relevant path is on the PATH.

the xcode changes will update the minimum support macOS version to run the compiler. For our release build the minimum moves from 12.0 to 12.5 (monterey) 13.0 (ventura).