Android CI #5
Workflow file for this run
This file contains 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 CI | |
on: workflow_dispatch | |
env: | |
HAXE_VERSION: 4.2.5 | |
jobs: | |
android: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup Android NDK | |
uses: nttld/setup-ndk@main | |
id: ndk | |
with: | |
ndk-version: r21e | |
- name: Setup Haxe | |
uses: krdlab/setup-haxe@v1 | |
with: | |
haxe-version: ${{ env.HAXE_VERSION }} | |
- name: Set HAXEPATH | |
run: echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV | |
- name: Install Haxe dependencies | |
run: | | |
haxelib git hxcpp https://github.com/CodenameCrew/cne-hxcpp --quiet | |
haxelib install format --quiet | |
haxelib install hxp --quiet | |
- name: Enable HXCPP compile cache | |
run: echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV | |
- name: Configure Lime | |
run: | | |
haxelib dev lime ${{ github.workspace }} | |
haxelib run lime config ANDROID_NDK_ROOT ${{ steps.ndk.outputs.ndk-path }} | |
haxelib run lime config ANDROID_SETUP true | |
- name: Rebuild Lime | |
run: | | |
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_ARMV7 | |
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_ARM64 | |
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_X86 | |
haxelib run lime rebuild android -release -nocolor -nocffi -eval -ONLY_X86_64 | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Android-NDLL | |
path: | | |
ndll/Android/ | |
!**/.gitignore | |
if-no-files-found: error |