diff options
Diffstat (limited to '.github/workflows/build_ios.yml')
-rw-r--r-- | .github/workflows/build_ios.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/build_ios.yml b/.github/workflows/build_ios.yml new file mode 100644 index 0000000..b095e02 --- /dev/null +++ b/.github/workflows/build_ios.yml @@ -0,0 +1,46 @@ +name: Build latest (iOS) +# trigger via either push to selected branches or on manual run +on: + push: + branches: + - main + - master + workflow_dispatch: + +concurrency: + group: ${{ github.ref }}-ios + cancel-in-progress: true + +jobs: + build: + runs-on: macOS-11 + steps: + - uses: actions/checkout@v3 + - name: Compile iOS build + id: compile + run: | + cd ios + xcodebuild -sdk iphoneos -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO + cd build/Release-iphoneos + mkdir Payload + mv ClassiCube.app Payload/ClassiCube.app + zip -r cc.ipa Payload + + - uses: ./.github/actions/notify_failure + if: ${{ always() && steps.compile.outcome == 'failure' }} + with: + NOTIFY_MESSAGE: 'Failed to compile iOS build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' + + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'ios/build/Release-iphoneos/cc.ipa' + DEST_NAME: 'cc.ipa' + + + - uses: ./.github/actions/notify_success + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' + WORKFLOW_NAME: 'ios' \ No newline at end of file |