mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-30 01:29:52 -06:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: build-macos
|
|
on: [push, workflow_dispatch]
|
|
|
|
jobs:
|
|
build-macos:
|
|
strategy:
|
|
matrix:
|
|
arch: [x86_64, arm64]
|
|
|
|
name: macOS ${{ matrix.arch }}
|
|
runs-on: macos-13
|
|
steps:
|
|
- name: Check out sources
|
|
uses: actions/checkout@v3
|
|
- name: Install dependencies for package building
|
|
run: |
|
|
brew install autoconf automake autoconf-archive libtool && pip3 install setuptools
|
|
- name: Set up CMake
|
|
uses: lukka/get-cmake@latest
|
|
- name: Set up vcpkg
|
|
uses: lukka/run-vcpkg@v11
|
|
with:
|
|
vcpkgGitCommitId: c8696863d371ab7f46e213d8f5ca923c4aef2a00
|
|
- name: Build
|
|
uses: lukka/run-cmake@v10
|
|
with:
|
|
configurePreset: release-mac-${{ matrix.arch }}
|
|
buildPreset: release-mac-${{ matrix.arch }}
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: macOS-${{ matrix.arch }}
|
|
path: build/release-mac-${{ matrix.arch }}/melonDS.app
|
|
|
|
universal-binary:
|
|
name: macOS universal binary
|
|
needs: [build-macos]
|
|
runs-on: macos-13
|
|
steps:
|
|
- name: Download x86_64
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: macOS-x86_64
|
|
- name: Download arm64
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: macOS-arm64
|
|
- run: find . -type d |