Invalido e a pqp #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android Build CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - uses: krdlab/setup-haxe@v1 | |
| with: | |
| haxe-version: 4.3.4 | |
| - name: Install Haxe libraries | |
| run: | | |
| haxelib setup ~/haxelib | |
| haxelib install lime 7.9.0 --quiet | |
| haxelib install openfl --quiet | |
| haxelib install flixel --quiet | |
| haxelib install flixel-addons --quiet | |
| haxelib install flixel-ui --quiet | |
| haxelib install hscript --quiet | |
| haxelib install actuate --quiet | |
| haxelib run lime setup | |
| - uses: android-actions/setup-android@v3 | |
| - name: Install Android NDK | |
| run: sdkmanager "ndk;21.4.7075529" | |
| - name: Configure Lime for Android | |
| run: | | |
| haxelib run lime config ANDROID_SDK $ANDROID_HOME | |
| haxelib run lime config ANDROID_NDK_ROOT $ANDROID_HOME/ndk/21.4.7075529 | |
| haxelib run lime config JAVA_HOME $JAVA_HOME | |
| - name: Build APK | |
| run: | | |
| mv Project.xml project.xml | |
| haxelib run lime build android -release | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: KadeEngine-Android | |
| path: export/android/release/bin/app/build/outputs/apk/release/*.apk |