From e608262a972af1c6400dc6c3890a1409d4176d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwa=C5=9Bniewski?= Date: Thu, 29 Aug 2024 11:37:49 +0200 Subject: [PATCH] feat: build and archive the app --- .github/workflows/build-app.yml | 34 +++++++++++++++++++++------------ .gitignore | 1 + exportOptions.plist | 10 ++++++++++ 3 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 exportOptions.plist diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index fbcdff1..1f11d11 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -1,5 +1,4 @@ -name: Build MiniSim - +name: Build and Upload MiniSim on: pull_request: branches: @@ -7,29 +6,40 @@ on: push: branches: - main - concurrency: group: ${{ github.ref }}-build cancel-in-progress: true jobs: - build: + 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: Install XCBeautify - run: brew install xcbeautify - - name: Test run: set -o pipefail && xcodebuild -scheme MiniSim -destination 'platform=macOS' -skipPackagePluginValidation -skipMacroValidation test COMPILER_INDEX_STORE_ENABLE=NO | xcbeautify - - name: Build - run: set -o pipefail && xcodebuild -scheme MiniSim -destination 'platform=macOS' -skipPackagePluginValidation -skipMacroValidation build 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 diff --git a/.gitignore b/.gitignore index de457ec..0178180 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ DerivedData/ !default.mode2v3 *.perspectivev3 !default.perspectivev3 +buildServer.json ## Obj-C/Swift specific *.hmap diff --git a/exportOptions.plist b/exportOptions.plist new file mode 100644 index 0000000..95e14cf --- /dev/null +++ b/exportOptions.plist @@ -0,0 +1,10 @@ + + + + + method + mac-application + teamID + Z3M9P6G4WY + +