|
51 | 51 | - v3.5 |
52 | 52 | - v3.4 |
53 | 53 | - v3.3 |
| 54 | + - ios-2024_2 |
54 | 55 | pull_request: |
55 | 56 | release: |
56 | 57 | types: [published] |
|
94 | 95 | **/build/reports/** |
95 | 96 | **/build/changed-images/** |
96 | 97 | **/build/test-results/** |
| 98 | +
|
| 99 | + # Build iOS natives |
| 100 | + BuildIosNatives: |
| 101 | + name: Build natives for iOS |
| 102 | + runs-on: macOS-14 |
| 103 | + |
| 104 | + steps: |
| 105 | + - name: Check default JAVAs |
| 106 | + run: echo $JAVA_HOME --- $JAVA_HOME_8_X64 --- $JAVA_HOME_11_X64 --- $JAVA_HOME_17_X64 --- $JAVA_HOME_21_X64 --- |
| 107 | + |
| 108 | + - name: Setup the java environment |
| 109 | + uses: actions/setup-java@v4 |
| 110 | + with: |
| 111 | + distribution: 'temurin' |
| 112 | + java-version: '11.0.26+4' |
| 113 | + |
| 114 | + - name: Setup the XCode version to 15.1.0 |
| 115 | + uses: maxim-lobanov/setup-xcode@v1 |
| 116 | + with: |
| 117 | + xcode-version: '15.1.0' |
| 118 | + |
| 119 | + - name: Clone the repo |
| 120 | + uses: actions/checkout@v4 |
| 121 | + with: |
| 122 | + fetch-depth: 1 |
| 123 | + |
| 124 | + - name: Validate the Gradle wrapper |
| 125 | + uses: gradle/actions/wrapper-validation@v3 |
| 126 | + |
| 127 | + - name: Build |
| 128 | + run: | |
| 129 | + ./gradlew -PuseCommitHashAsVersionName=true --no-daemon -PbuildNativeProjects=true \ |
| 130 | + :jme3-ios-native:build |
| 131 | +
|
| 132 | + - name: Upload natives |
| 133 | + uses: actions/upload-artifact@master |
| 134 | + with: |
| 135 | + name: ios-natives |
| 136 | + path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework |
| 137 | + |
97 | 138 | # Build the natives on android |
98 | 139 | BuildAndroidNatives: |
99 | 140 | name: Build natives for android |
@@ -139,7 +180,7 @@ jobs: |
139 | 180 |
|
140 | 181 | # Build the engine, we only deploy from ubuntu-latest jdk21 |
141 | 182 | BuildJMonkey: |
142 | | - needs: [BuildAndroidNatives] |
| 183 | + needs: [BuildAndroidNatives, BuildIosNatives] |
143 | 184 | name: Build on ${{ matrix.osName }} jdk${{ matrix.jdk }} |
144 | 185 | runs-on: ${{ matrix.os }} |
145 | 186 | strategy: |
@@ -180,6 +221,12 @@ jobs: |
180 | 221 | name: android-natives |
181 | 222 | path: build/native |
182 | 223 |
|
| 224 | + - name: Download natives for iOS |
| 225 | + uses: actions/download-artifact@master |
| 226 | + with: |
| 227 | + name: ios-natives |
| 228 | + path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework |
| 229 | + |
183 | 230 | - name: Validate the Gradle wrapper |
184 | 231 | uses: gradle/actions/wrapper-validation@v3 |
185 | 232 | - name: Build Engine |
@@ -372,6 +419,12 @@ jobs: |
372 | 419 | name: android-natives |
373 | 420 | path: build/native |
374 | 421 |
|
| 422 | + - name: Download natives for iOS |
| 423 | + uses: actions/download-artifact@master |
| 424 | + with: |
| 425 | + name: ios-natives |
| 426 | + path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework |
| 427 | + |
375 | 428 | - name: Rebuild the maven artifacts and upload them to Sonatype's maven-snapshots repo |
376 | 429 | run: | |
377 | 430 | if [ "${{ secrets.CENTRAL_PASSWORD }}" = "" ]; |
@@ -429,6 +482,12 @@ jobs: |
429 | 482 | name: android-natives |
430 | 483 | path: build/native |
431 | 484 |
|
| 485 | + - name: Download natives for iOS |
| 486 | + uses: actions/download-artifact@master |
| 487 | + with: |
| 488 | + name: ios-natives |
| 489 | + path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework |
| 490 | + |
432 | 491 | - name: Rebuild the maven artifacts and upload them to Sonatype's Central Publisher Portal |
433 | 492 | run: | |
434 | 493 | if [ "${{ secrets.CENTRAL_PASSWORD }}" = "" ]; |
|
0 commit comments