diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3889610..3a61f26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,42 @@ defaults: shell: bash jobs: + android: + name: Android + + runs-on: ubuntu-latest + + steps: + - name: Clone + uses: actions/checkout@v3 + + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: temurin + java-version: 11 + cache: gradle + + - name: Cache cmake build + uses: actions/cache@v3 + with: + path: os/android/app/.cxx + key: android-cmake-v1 + + - name: Build + run: | + cd os/android + ./gradlew assembleDebug + + - name: Upload + run: | + cd os/android/app/build/outputs/apk/debug + cp app-debug.apk fallout2-ce-android.apk + gh release upload ${{ github.ref_name }} fallout2-ce-android.apk + rm fallout2-ce-android.apk + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + linux: name: Linux (${{ matrix.arch }})