Skip to content

.github/workflows/build.yml #63

.github/workflows/build.yml

.github/workflows/build.yml #63

Workflow file for this run

on:
workflow_dispatch:
jobs:
build-macos-arm64:
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure and build arm64
uses: ./.github/actions/build-macos
with:
config-preset: Release
build-preset: Release
vcpkg-triplet: arm64-osx
arch: arm64
build-macos-x64:
needs: [build-macos-arm64]
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure and build x64
uses: ./.github/actions/build-macos
with:
config-preset: Release
build-preset: Release
vcpkg-triplet: x64-osx
arch: x86_64
package-macos:
needs: [build-macos-arm64, build-macos-x64]
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: ./.github/actions/cache
with:
os: macos
- name: Test 1
run: find ./bin
- name: Merge binaries
run: |
mkdir -p ./bin/Release
cp -R ./bin/x86_64/Release/PartStackerGUI.app ./bin/Release/PartStackerGUI.app
lipo -create \
./bin/x86_64/Release/PartStackerGUI.app/Contents/MacOS/PartStackerGUI \
./bin/arm64/Release/PartStackerGUI.app/Contents/MacOS/PartStackerGUI \
-output ./bin/Release/PartStackerGUI.app/Contents/MacOS/PartStackerGUI
- name: Package into DMG
run: |
mkdir -p ./bin/Release
hdiutil create \
-volname "PartStackerGUI" \
-srcfolder ./bin/Release \
-format UDZO \
./bin/Release/PartStackerGUI-mac.dmg
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: PartStackerGUI-mac
path: ./bin/Release/PartStackerGUI-mac.dmg