GitHub Actions for macOS (#696)
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run

This commit is contained in:
EmeraldLockdown 2025-03-09 21:24:33 -05:00 committed by GitHub
parent 04ea4d6ad4
commit 2d62121953
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,7 @@ jobs:
with:
name: sm64coopdx-ubuntu
path: ./build/us_pc/sm64coopdx
build-windows:
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build]') }}
runs-on: windows-latest
@ -63,3 +64,65 @@ jobs:
with:
name: sm64coopdx-windows
path: ./build/us_pc/sm64coopdx.exe
build-macos-arm:
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build]') }}
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install make mingw-w64 gcc sdl2 pkg-config glew glfw3 libusb coreutils
- name: Build the game
run: |
gmake OSX_BUILD=1 -j$(sysctl -n hw.ncpu)
- name: Code sign the app (Ad-Hoc)
run: |
codesign --force --deep --sign - ./build/us_pc/sm64coopdx.app
- name: Zip the .app bundle
run: |
cd ./build/us_pc
zip -r sm64coopdx-macos-arm.zip sm64coopdx.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: sm64coopdx-macos-arm
path: ./build/us_pc/sm64coopdx-macos-arm.zip
build-macos-intel:
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build]') }}
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install make mingw-w64 gcc@9 sdl2 pkg-config glew glfw3 libusb coreutils
- name: Build the game
run: |
gmake OSX_BUILD=1 -j$(sysctl -n hw.ncpu)
- name: Code sign the app (Ad-Hoc)
run: |
codesign --force --deep --sign - ./build/us_pc/sm64coopdx.app
- name: Zip the .app bundle
run: |
cd ./build/us_pc
zip -r sm64coopdx-macos-intel.zip sm64coopdx.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: sm64coopdx-macos-intel
path: ./build/us_pc/sm64coopdx-macos-intel.zip