2023-09-08 00:40:59 +02:00
|
|
|
name: CI (Android)
|
|
|
|
|
|
|
|
# Trigger this workflow on push or pull request
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
|
|
|
SRC_DIR_PATH: VVVVVV/desktop_version/VVVVVV-android
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build (Android)
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
path: 'VVVVVV'
|
|
|
|
|
|
|
|
- uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: '17'
|
|
|
|
cache: 'gradle'
|
|
|
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: libsdl-org/SDL
|
2023-11-07 20:04:28 +01:00
|
|
|
ref: release-2.28.5
|
2023-09-08 00:40:59 +02:00
|
|
|
path: 'SDL'
|
|
|
|
|
2023-11-07 20:04:28 +01:00
|
|
|
- name: Build SDL
|
|
|
|
run: |
|
|
|
|
sudo apt-get -y install ninja-build
|
|
|
|
cd SDL
|
|
|
|
./build-scripts/android-prefab.sh
|
|
|
|
mvn install:install-file -Dfile=build-android-prefab/prefab-2.28.5/SDL2-2.28.5.aar -DpomFile=build-android-prefab/prefab-2.28.5/SDL2-2.28.5.pom
|
|
|
|
|
2023-09-08 00:40:59 +02:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cd ${SRC_DIR_PATH}
|
|
|
|
./gradlew build
|