1- name : iOS Compile Test
1+ name : iOS Build Test IPA
22
33on :
44 push :
@@ -10,18 +10,21 @@ permissions:
1010 contents : read
1111
1212concurrency :
13- group : ios-compile-test -${{ github.ref }}
13+ group : ios-buildtest-ipa -${{ github.ref }}
1414 cancel-in-progress : true
1515
1616defaults :
1717 run :
1818 shell : bash
1919
20+ env :
21+ IPA_NAME : ARMSX2-iOS-${{ github.sha }}-unsigned.ipa
22+
2023jobs :
2124 build :
22- name : Compile unsigned iOS app
25+ name : Build unsigned iOS IPA
2326 runs-on : macos-15
24- timeout-minutes : 45
27+ timeout-minutes : 60
2528
2629 steps :
2730 - name : Checkout
@@ -42,18 +45,22 @@ jobs:
4245 run : |
4346 git submodule status --recursive
4447
45- - name : Generate Xcode project
48+ - name : Build unsigned IPA
4649 run : |
47- ./scripts/generate -ios-xcode .sh
50+ IPA_NAME="$IPA_NAME" ./scripts/build -ios-ipa .sh
4851
49- - name : Compile unsigned iOS app
52+ - name : Inspect unsigned IPA
5053 run : |
51- xcodebuild \
52- -project build-ios-xcode/ARMSX2iOS.xcodeproj \
53- -scheme ARMSX2iOS \
54- -configuration Release \
55- -sdk iphoneos \
56- CODE_SIGNING_ALLOWED=NO \
57- CODE_SIGNING_REQUIRED=NO \
58- CODE_SIGN_IDENTITY="" \
59- build
54+ IPA_PATH="build-ios-xcode/$IPA_NAME"
55+ if [ ! -f "$IPA_PATH" ]; then
56+ echo "Unsigned IPA not produced at $IPA_PATH"
57+ find build-ios-xcode -maxdepth 5 \( -name "*.ipa" -o -name "*.app" \) -print
58+ exit 1
59+ fi
60+ ls -lh "$IPA_PATH"
61+
62+ - name : Upload unsigned IPA
63+ uses : actions/upload-artifact@v5
64+ with :
65+ name : ${{ env.IPA_NAME }}
66+ path : build-ios-xcode/${{ env.IPA_NAME }}
0 commit comments