Update for API changes #15
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: Build Sample for Android | |
on: [push, pull_request] | |
jobs: | |
apk: | |
name: Apk Build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: [Debug, Release] | |
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: Build the APK | |
run: | | |
cd sdl-android-builder | |
./gradlew assemble${{ matrix.target }} | |
- name: Upload the APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-${{matrix.target}}.apk | |
path: sdl-android-builder/app/build/outputs/apk/* |