37 lines
807 B
YAML
37 lines
807 B
YAML
name: Build macOS App
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on:
|
|
- self-hosted
|
|
- macos
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build release configuration
|
|
run: |
|
|
xcodebuild \
|
|
-project iKeyMon.xcodeproj \
|
|
-scheme iKeyMon \
|
|
-configuration Release \
|
|
-derivedDataPath build \
|
|
clean build
|
|
|
|
- name: Package app bundle
|
|
run: |
|
|
mkdir -p artifacts
|
|
cd build/Build/Products/Release
|
|
zip -r "../../../../artifacts/iKeyMon.app.zip" iKeyMon.app
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: iKeyMon-macos-app
|
|
path: artifacts/iKeyMon.app.zip
|