Skip to content

Commit

Permalink
macos build - sonoma
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-boon committed Feb 2, 2024
1 parent 3b1d4bb commit 2eaae2c
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,46 @@ jobs:
git commit -m "Update Ubuntu 22.04 binaries"
git push
macOS:
macOS-M:
# The type of runner that the job will run on
runs-on: macos-latest
runs-on: macos-12
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: Checkout submodules
run: git submodule update --init --recursive

- name: Install packages
run: |
brew reinstall gcc
brew install netcdf
brew install gd
- name: compile GLM
run: |
cd $GITHUB_WORKSPACE/glm-source
./build_glm.sh
MOSDIR=`grep 'SOFTWARE LICENSE AGREEMENT FOR ' '/System/Library/CoreServices/Setup Assistant.app/Contents/Resources/en.lproj/OSXSoftwareLicense.rtf' | awk -F 'macOS ' '{print $NF}' | tr -d '\\' | tr ' ' '_'`
mkdir -p $GITHUB_WORKSPACE/binaries/macos/${MOSDIR}
cp -r $GITHUB_WORKSPACE/glm-source/binaries/macos/${MOSDIR}/* $GITHUB_WORKSPACE/binaries/macos/${MOSDIR}/.
- name: update binaries and push to remote
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git pull
git add -A
git commit -m "Update MacOS binaries"
git push
macOS-S:
# The type of runner that the job will run on
runs-on: macos-14
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 2eaae2c

Please sign in to comment.