From 029bd9da816e73dbbaf5b8e8c9e8433c19b94867 Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 3 Nov 2023 09:50:15 -0300 Subject: [PATCH] add android CI (#889) --- .github/workflows/gradle.yaml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/gradle.yaml b/.github/workflows/gradle.yaml index 779c26535..445404e02 100644 --- a/.github/workflows/gradle.yaml +++ b/.github/workflows/gradle.yaml @@ -22,6 +22,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: recursive + - name: Get tags run: git fetch --tags origin --recurse-submodules=no --force @@ -51,6 +52,7 @@ jobs: - uses: actions/checkout@v3 with: submodules: recursive + - name: Get tags run: git fetch --tags origin --recurse-submodules=no --force @@ -84,6 +86,48 @@ jobs: server/desktop/build/libs/* + bundle-android: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Get tags + run: git fetch --tags origin --recurse-submodules=no --force + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: "17" + distribution: "adopt" + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version-file: '.node-version' + cache: 'npm' + + - name: Build GUI + run: | + npm ci + cd gui && npm run build + + - name: Build with Gradle + run: ./gradlew :server:android:assembleDebug + + - name: Upload the APK + uses: actions/upload-artifact@v3 + with: + # Artifact name + name: "SlimeVR-Android" # optional, default is artifact + # A file, directory or wildcard pattern that describes what to upload + path: server/android/build/outputs/apk/* + + bundle-linux: runs-on: ubuntu-22.04 needs: [build, test]