Skip to content

Commit 23fa294

Browse files
committed
[WIP] iOS workflow (sorry for all the repeating commits btw, i'm working alone so i don't really care about commit rules)
1 parent c875c1b commit 23fa294

File tree

1 file changed

+66
-17
lines changed

1 file changed

+66
-17
lines changed

.github/workflows/main.yml

Lines changed: 66 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,7 @@ jobs:
211211
uses: android-actions/setup-android@v3
212212
- name: Install specific NDK version
213213
run: |
214-
# Install NDK 21.4.7075529 which works better with hxcpp
215214
echo "y" | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager "ndk;21.4.7075529"
216-
217-
# Set NDK path to the specific version
218215
echo "ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/21.4.7075529" >> $GITHUB_ENV
219216
- name: Set up JDK 17
220217
uses: actions/setup-java@v4
@@ -268,32 +265,23 @@ jobs:
268265

269266
- name: Setup Android paths for Lime
270267
run: |
271-
# Install additional build tools
272268
sudo apt-get update
273269
sudo apt-get install -y build-essential libc6-dev-i386
274-
275-
# Verify paths exist
270+
276271
echo "Android SDK: $ANDROID_SDK_ROOT"
277272
echo "Android NDK: $ANDROID_NDK_ROOT"
278273
echo "Java Home: $JAVA_HOME"
279-
280-
# Verify NDK installation
281-
ls -la $ANDROID_NDK_ROOT/
282-
283-
# Run lime setup android with automated input
274+
284275
printf '%s\n%s\n%s\n' "$ANDROID_SDK_ROOT" "$ANDROID_NDK_ROOT" "$JAVA_HOME" | haxelib run lime setup android
285-
286-
# Also set the config values directly
276+
287277
haxelib run lime config ANDROID_SDK $ANDROID_SDK_ROOT
288278
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_ROOT
289279
haxelib run lime config JAVA_HOME $JAVA_HOME
290280
- name: Build Android APK
291281
run: |
292-
# Set additional environment variables for NDK
293282
export ANDROID_NDK=$ANDROID_NDK_ROOT
294283
export NDK_ROOT=$ANDROID_NDK_ROOT
295-
296-
# Build with verbose output to help debug issues
284+
297285
haxelib run lime build android -release --app-version="4.0.0-${{ github.run_id }}"
298286
- name: Show APK Path
299287
run: find export/release/android -type f -name "*.apk"
@@ -302,4 +290,65 @@ jobs:
302290
uses: actions/upload-artifact@v4
303291
with:
304292
name: android-apk
305-
path: export/release/android/bin/app/build/outputs/apk/debug/app-debug.apk
293+
path: export/release/android/bin/app/build/outputs/apk/debug/Lore Origins-debug.apk
294+
295+
ios-release:
296+
runs-on: macos-15
297+
steps:
298+
- uses: actions/checkout@v4
299+
- uses: krdlab/setup-haxe@v2
300+
with:
301+
haxe-version: 4.3.4
302+
- name: Install and Setup Haxelib
303+
run: |
304+
haxelib setup ~/haxelib
305+
- name: Install hxcpp
306+
run: |
307+
haxelib install hxcpp 4.3.2
308+
- name: Install lime
309+
run: |
310+
haxelib install lime
311+
- name: Install openfl
312+
run: |
313+
haxelib install openfl
314+
- name: Install and Setup flixel 5.5.0
315+
run: |
316+
haxelib --never install flixel 5.5.0
317+
haxelib run lime setup flixel
318+
haxelib run lime setup
319+
- name: Install flixel tools and others
320+
run: |
321+
haxelib install flixel-tools
322+
haxelib install flixel-ui 2.6.3
323+
haxelib set flixel-ui 2.6.3
324+
haxelib install flixel-addons
325+
- name: Install tjson
326+
run: |
327+
haxelib install tjson 1.0.4
328+
- name: Install hscript-iris 1.0.2
329+
run: |
330+
haxelib install hscript-iris 1.0.2
331+
- name: Install hxCodec 3.0.2
332+
run: |
333+
haxelib install hxCodec 3.0.2
334+
- name: Install hxvlc 2.2.1
335+
run: |
336+
haxelib install hxvlc 2.2.1
337+
- name: Install other vital libraries
338+
run: |
339+
haxelib git flxanimate https://github.com/ShadowMario/flxanimate dev
340+
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit
341+
haxelib git hxdiscord_rpc https://github.com/MAJigsaw77/hxdiscord_rpc
342+
- name: List Installed Haxelibs
343+
run: haxelib list
344+
- name: Create Version Tag
345+
run: echo "${{github.run_id}}" > VERSION
346+
- name: Build iOS project
347+
run: |
348+
# Build the iOS project (creates Xcode project but doesn't require signing for build step)
349+
haxelib run lime build ios --app-version="4.0.0-${{ github.run_id}}"
350+
- name: Upload iOS Project Artifact
351+
uses: actions/upload-artifact@v4
352+
with:
353+
name: ios-project
354+
path: export/release/ios

0 commit comments

Comments
 (0)