From d35e0698f909ce825c3b8871244f3f3b7c4bb000 Mon Sep 17 00:00:00 2001 From: The Judge Date: Sun, 24 Nov 2024 14:48:15 -0800 Subject: [PATCH] Android --- .github/workflows/build-android.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build-android.yml diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml new file mode 100644 index 0000000000..af4947d0d8 --- /dev/null +++ b/.github/workflows/build-android.yml @@ -0,0 +1,40 @@ +name: Android build + +on: [push, workflow_dispatch] + +jobs: + build: + strategy: + matrix: + arch: [ "arm64" ] + fail-fast: false + + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: set up JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + + - name: Build for Android ${{matrix.arch}} + run: | + export JAVA8_HOME=$JAVA_HOME_8_${{runner.arch}} + export LWJGL_BUILD_ARCH=${{matrix.arch}} + bash ci_build_android.bash + + - name: Upload modules release output + if: ${{matrix.arch == 'arm64'}} # Only upload this once + uses: actions/upload-artifact@v3 + with: + name: lwjgl3-android-modules + path: bin/RELEASE + + - name: Upload native build output + uses: actions/upload-artifact@v3 + with: + name: lwjgl3-android-natives-${{matrix.arch}} + path: bin/out \ No newline at end of file