1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-12-10 22:17:05 +00:00
Funkin/.github/workflows/build-game-mobile.yml
KarimAkra 944141292d Move part of the code from the old repository
Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com>
Co-Authored-By: mcagabe19 <egzozu.be.bas@gmail.com>
Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com>
Co-Authored-By: MoonDroid <81515012+moondroidcoder@users.noreply.github.com>
Co-Authored-By: luckydog7 <59097731+luckydog7@users.noreply.github.com>
2025-04-15 21:32:39 +03:00

85 lines
2.5 KiB
YAML

name: Build Game for Mobile
on: workflow_dispatch
jobs:
Android:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: true
token: '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'
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
# https://github.com/actions/runner-images/issues/10814
- name: Workaround build-tools issue
run: |
curl https://dl.google.com/android/repository/build-tools_r35_macosx.zip > $ANDROID_HOME/build-tools_r35_macosx.zip
cd $ANDROID_HOME
mkdir build-tools
unzip build-tools_r35_macosx.zip
mv android-15 build-tools/35.0.0
- name: Install Libraries
run: |
haxelib git hmm https://github.com/FunkinCrew/hmm.git skip-deps --quiet --skip-dependencies
haxelib run hmm install --quiet
haxelib run lime rebuild hxcpp
- name: Configure Android
run: |
haxelib run lime config ANDROID_SDK $ANDROID_HOME
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_LATEST_HOME
haxelib run lime config JAVA_HOME $JAVA_HOME_17_arm64
haxelib run lime config ANDROID_SETUP true
- name: Compile
run: haxelib run lime build android
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: androidBuild
path: export/release/android/bin/app/build/outputs/apk/debug/*.apk
if-no-files-found: error
iOS:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: true
token: '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'
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
- name: Install Libraries
run: |
haxelib git hmm https://github.com/FunkinCrew/hmm.git skip-deps --quiet --skip-dependencies
haxelib run hmm install --quiet
haxelib run lime rebuild hxcpp
- name: Compile
run: haxelib run lime build ios -nosign
- name: Make .ipa
run: |
cd export/*/ios/build/*-iphoneos
mkdir Payload
mv *.app Payload
zip -r Funkin.ipa Payload
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: iOSBuild
path: export/release/ios/build/Release-iphoneos/*.ipa
if-no-files-found: error