Include the Oculus SDK instead of downloading it
This commit is contained in:
+13
-19
@@ -58,14 +58,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache Oculus SDK
|
||||
id: cache-oculus-sdk
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
ovr_openxr_mobile_sdk_46.0.zip
|
||||
key: oculus-sdk-46
|
||||
|
||||
- name: set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
@@ -78,26 +70,28 @@ jobs:
|
||||
sudo apt-get update && sudo apt-get install glslang-tools
|
||||
|
||||
- name: Secrets
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
env:
|
||||
WIVRNBOTKEY: ${{ secrets.WIVRNBOTKEY }}
|
||||
APK_SIGNINGKEYPASSWORD: ${{ secrets.APK_SIGNINGKEYPASSWORD }}
|
||||
APK_KEYSTORE_BASE64: ${{ secrets.APK_KEYSTORE_BASE64 }}
|
||||
run: |
|
||||
echo "$WIVRNBOTKEY" > id_ed25519
|
||||
chmod 600 id_ed25519
|
||||
echo signingKeyPassword="$APK_SIGNINGKEYPASSWORD" > gradle.properties
|
||||
echo "$APK_KEYSTORE_BASE64" | base64 --decode --ignore-garbage > ks.keystore
|
||||
|
||||
- name: Download Oculus SDK
|
||||
if: steps.cache-oculus-sdk.outputs.cache-hit != 'true'
|
||||
run: sftp -i id_ed25519 -o StrictHostKeyChecking=no wivrn-bot@meumeu.org:data/ovr_openxr_mobile_sdk_46.0.zip .
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Build with Gradle
|
||||
- name: Build (debug only)
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew assembleOculusDebug assembleOculusDebugWithValidationLayer
|
||||
|
||||
- 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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user