Skip to content

feat: build and archive the app #91

feat: build and archive the app

feat: build and archive the app #91

Workflow file for this run

name: Build App
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.ref }}-build
cancel-in-progress: true
jobs:
test:
runs-on: macos-13
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15
- name: Test
run: set -o pipefail && xcodebuild -scheme MiniSim -destination 'platform=macOS' -skipPackagePluginValidation -skipMacroValidation test COMPILER_INDEX_STORE_ENABLE=NO | xcbeautify
archive:
env:
TEAM_ID: Z3M9P6G4WY
runs-on: macos-13
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15
- name: Archive and Export
run: |
set -o pipefail && xcodebuild -scheme MiniSim -destination 'platform=macOS' -skipPackagePluginValidation -skipMacroValidation archive -archivePath $PWD/build/MiniSim.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify
xcodebuild -exportArchive -archivePath $PWD/build/MiniSim.xcarchive -exportPath $PWD/build -exportOptionsPlist $PWD/exportOptions.plist | xcbeautify
codesign --force --options runtime --sign "$TEAM_ID" $PWD/build/MiniSim.app
- name: Zip .app
run: zip -r MiniSim.zip build/MiniSim.app
- name: Upload zipped .app artifact
uses: actions/upload-artifact@v2
with:
name: MiniSim.zip
path: MiniSim.zip