From 20d4a4ce41a81a321fa55b75ae910831bd081fff Mon Sep 17 00:00:00 2001 From: Ravbug Date: Wed, 7 Feb 2024 17:10:34 -0500 Subject: [PATCH] Attempt to build for Android --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..39bde31 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build Sample for Android + +on: [push, pull_request] + +jobs: + apk: + name: Apk Build + runs-on: ubuntu-latest + + steps: + - name: Get the Android Builder + run: git clone https://github.com/ravbug/sdl-android-builder + - uses: actions/checkout@v3 + with: + submodules: true + path: sdl-android-builder/to-build/ + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Update the build.gradle + run: | + cp build.gradle SDL/android-project/app/ + + - name: Build the APK + run: | + cd SDL/android-project/ + ./gradlew installDebug + + - name: Upload the APK + uses: actions/upload-artifact@v3 + with: + name: app-debug.apk + path: SDL/android-project/app/build/outputs/apk/debug/app-debug.apk