-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.24 KB
/
main.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
34
35
36
37
38
39
name: Build macOS App
on:
push:
branches:
- main
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.1'
- name: Build the project
run: xcodebuild -project AndroidTools/AndroidTools.xcodeproj -scheme AndroidTools -sdk macosx CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
- name: Archive the project
run: xcodebuild -project AndroidTools/AndroidTools.xcodeproj -scheme AndroidTools -sdk macosx -configuration Release archive -archivePath ${{github.workspace}}/build/AndroidTools.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
- name: Export the archive
run: |
xcodebuild -exportArchive \
-archivePath ${{github.workspace}}/build/AndroidTools.xcarchive \
-exportPath ${{github.workspace}}/build \
-exportOptionsPlist AndroidTools/ExportOptions.plist \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: AndroidTools
path: ${{github.workspace}}/build/*