2024-04-24 07:35:36 -04:00
|
|
|
name: Build latest (iOS)
|
2024-05-13 08:24:47 -04:00
|
|
|
# trigger via either push to selected branches or on manual run
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-16 04:47:09 -04:00
|
|
|
- main
|
2024-05-13 08:24:47 -04:00
|
|
|
- master
|
|
|
|
workflow_dispatch:
|
2024-04-24 07:35:36 -04:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.ref }}-ios
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-10-28 16:54:29 -04:00
|
|
|
runs-on: macOS-13
|
2024-04-24 07:35:36 -04:00
|
|
|
steps:
|
2024-09-20 21:35:33 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-04-24 07:35:36 -04:00
|
|
|
- name: Compile iOS build
|
|
|
|
id: compile
|
|
|
|
run: |
|
2024-09-25 06:43:20 -04:00
|
|
|
cd misc/ios
|
2024-10-29 04:57:25 -04:00
|
|
|
sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer
|
2024-04-24 07:35:36 -04:00
|
|
|
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:
|
2024-09-26 04:18:15 -04:00
|
|
|
SOURCE_FILE: 'misc/ios/build/Release-iphoneos/cc.ipa'
|
2024-04-27 19:40:27 -04:00
|
|
|
DEST_NAME: 'cc.ipa'
|
|
|
|
|
|
|
|
|
|
|
|
- uses: ./.github/actions/notify_success
|
|
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
|
|
with:
|
|
|
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
2024-06-24 06:25:04 -04:00
|
|
|
WORKFLOW_NAME: 'ios'
|