This repository was archived by the owner on Dec 13, 2025. It is now read-only.
Update README.md #6
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: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| buildAndroid: | |
| runs-on: macos-14 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup Haxe | |
| uses: krdlab/setup-haxe@master | |
| with: | |
| haxe-version: 4.3.6 | |
| - name: Restore Previous Cache | |
| id: cache-build-restore | |
| uses: actions/cache/restore@main | |
| with: | |
| path: | | |
| .haxelib/ | |
| export/debug/android/haxe/ | |
| export/debug/android/obj/ | |
| key: cache-android-debug | |
| - name: Create Version Tag | |
| run: echo "${{github.run_id}}" > VERSION | |
| # 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 || true | |
| unzip build-tools_r35_macosx.zip | |
| mv android-15 build-tools/35.0.0 || true | |
| - name: Install Libraries | |
| run: | | |
| haxe --interp -cp ./actions/libs-installer -D analyzer-optimize -main Main | |
| - name: Save Current Haxelib Cache | |
| uses: actions/cache@main | |
| with: | |
| key: cache-android-debug | |
| path: | | |
| .haxelib/ | |
| restore-keys: | | |
| cache-android-debug | |
| - 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 -D 32bits_disabled -ARM64 -final | |
| - name: Clear Previous Cache | |
| uses: actions/github-script@main | |
| with: | |
| script: await require('./actions/cache/clear-cache.js')({github, context}, 'cache-android-debug'); | |
| - name: Save Current Cache | |
| uses: actions/cache@main | |
| with: | |
| key: cache-android-debug | |
| path: | | |
| .haxelib/ | |
| export/debug/android/haxe/ | |
| export/debug/android/obj/ | |
| restore-keys: | | |
| cache-android-debug | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: androidBuild | |
| path: export/release/android/bin/app/build/outputs/apk/release/*.apk | |
| if-no-files-found: error |