-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 926 Bytes
/
build-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build macOS app
on: [push]
jobs:
build:
name: Build Xcode app project
runs-on: macos-14
env:
APP_NAME: Commandoak
XCODE_VERSION: 15.2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Xcode version
run: sudo xcode-select --switch /Applications/Xcode_${{ env.XCODE_VERSION }}.app
- name: Build macOS app
run: |
xcodebuild \
-project ${{ env.APP_NAME }}.xcodeproj \
-scheme ${{ env.APP_NAME }} \
-configuration Release \
-sdk macosx \
archive -archivePath build/${{ env.APP_NAME }}.xcarchive CODE_SIGNING_ALLOWED=NO
- name: Create ZIP of build output
run: zip -r build.zip build
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }} build output
path: build.zip