diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 71f2f9f6..4ec3d486 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -52,7 +52,7 @@ jobs: - name: Build run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - build-android: + build-android-quest: name: Build the WiVRn client for Oculus Quest runs-on: ubuntu-22.04 @@ -111,3 +111,62 @@ jobs: draft: true files: | apk/WiVRn-oculus-release.apk + build-android-pico: + name: Build the WiVRn client for Pico >5.4 + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v3 + + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: Install dependencies + run: > + sudo apt-get update && sudo apt-get install glslang-tools + + - name: Secrets + if: ${{ github.event_name != 'pull_request' }} + env: + APK_SIGNINGKEYPASSWORD: ${{ secrets.APK_SIGNINGKEYPASSWORD }} + APK_KEYSTORE_BASE64: ${{ secrets.APK_KEYSTORE_BASE64 }} + run: | + echo signingKeyPassword="$APK_SIGNINGKEYPASSWORD" > gradle.properties + echo "$APK_KEYSTORE_BASE64" | base64 --decode --ignore-garbage > ks.keystore + + - name: Build (debug only) + if: ${{ github.event_name == 'pull_request' }} + run: | + chmod +x gradlew + ./gradlew assemblePicoDebug assemblePicoDebugWithValidationLayer + + - name: Build + if: ${{ github.event_name != 'pull_request' }} + run: | + chmod +x gradlew + ./gradlew build + + - name: Prepare before archiving artifacts + run: | + mkdir apk + mv $(find build/outputs/apk/ -name "*.apk") apk/ + + - name: Archive artifacts + uses: actions/upload-artifact@v3 + with: + name: APK + path: apk/*.apk + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ inputs.ref }} + generate_release_notes: true + draft: true + files: | + apk/WiVRn-pico-release.apk