diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index fbcdff1..75e0231 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -1,5 +1,4 @@ -name: Build MiniSim - +name: Build App on: pull_request: branches: @@ -7,29 +6,43 @@ 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: + 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 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 + +