Update main.yml #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/*.pkg |