feat: build and archive the app #89
Workflow file for this run
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 and Upload MiniSim | |
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: | |
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 | xcbeautify | |
xcodebuild -exportArchive -archivePath $PWD/build/MiniSim.xcarchive -exportPath $PWD/build -exportOptionsPlist $PWD/exportOptions.plist | xcbeautify | |
- 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 |