Update APK-Release.yml
This commit is contained in:
@@ -78,105 +78,97 @@ jobs:
|
||||
if-no-files-found: error
|
||||
retention-days: 30
|
||||
|
||||
# build-android-only:
|
||||
# name: Android
|
||||
# runs-on: ubuntu-24.04
|
||||
# if: ${{ vars.APK_ONLY != '' }}
|
||||
#
|
||||
# strategy:
|
||||
# matrix:
|
||||
# buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
|
||||
#
|
||||
# steps:
|
||||
# - uses: actions/checkout@v6
|
||||
# with:
|
||||
# Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
|
||||
# repository: 'Vindicus999/WiVRn'
|
||||
# ref: ${{ github.sha }}
|
||||
# fetch-depth: 0
|
||||
#
|
||||
# - name: Prepare Vulkan SDK
|
||||
# uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
# with:
|
||||
# vulkan-query-version: 1.3.296.0
|
||||
# vulkan-components: Glslang, SPIRV-Tools
|
||||
# vulkan-use-cache: true
|
||||
#
|
||||
# - name: Install dependencies
|
||||
# run: |
|
||||
# sudo apt-get update && sudo apt-get install glslang-tools librsvg2-bin gettext npm
|
||||
# wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.0/KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
# sudo dpkg --install KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
# npm install --global @gltf-transform/cli@4.1.1
|
||||
#
|
||||
# - name: Check for Secret availability
|
||||
# id: secret-check
|
||||
# shell: bash
|
||||
# run: |
|
||||
# if [[ "${{ secrets.APK_SIGNINGKEYPASSWORD }}" != '' && "${{ secrets.APK_KEYSTORE_BASE64 }}" != '' ]]; then
|
||||
# echo "available=true" >> $GITHUB_OUTPUT;
|
||||
# else
|
||||
# echo "available=false" >> $GITHUB_OUTPUT;
|
||||
# fi
|
||||
#
|
||||
# - name: Secrets
|
||||
# if: ${{ github.event_name != 'pull_request' && steps.secret-check.outputs.available == 'true' }}
|
||||
# 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
|
||||
# run: |
|
||||
# chmod +x gradlew
|
||||
# ./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" -Pwivrn_compress_glb=ON assemble${{ matrix.buildtype }}
|
||||
#
|
||||
# - name: Prepare before archiving artifacts
|
||||
# run: |
|
||||
# mkdir apk
|
||||
# mv $(find build/outputs/apk/ -name "*.apk") apk/
|
||||
# mkdir debug
|
||||
# mv build/intermediates/merged_native_libs/*/*/out/lib/* debug/
|
||||
# find debug -name libopenxr_loader.so -delete
|
||||
#
|
||||
# - name: Archive APK
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: apk-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||
# path: apk/*.apk
|
||||
# retention-days: 7
|
||||
#
|
||||
# - name: Archive debug symbols
|
||||
# if: ${{ matrix.buildtype != 'Release' }}
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: symbols-${{ matrix.buildtype }}
|
||||
# path: debug/**/*.so
|
||||
# retention-days: 7
|
||||
build-android-only:
|
||||
name: Android
|
||||
runs-on: ubuntu-24.04
|
||||
if: ${{ vars.APK_ONLY != '' }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
|
||||
repository: 'Vindicus999/WiVRn'
|
||||
ref: ${{ github.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prepare Vulkan SDK
|
||||
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
|
||||
with:
|
||||
vulkan-query-version: 1.3.296.0
|
||||
vulkan-components: Glslang, SPIRV-Tools
|
||||
vulkan-use-cache: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install glslang-tools librsvg2-bin gettext npm
|
||||
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.0/KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
sudo dpkg --install KTX-Software-4.4.0-Linux-x86_64.deb
|
||||
npm install --global @gltf-transform/cli@4.1.1
|
||||
|
||||
- name: Check for Secret availability
|
||||
id: secret-check
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ secrets.APK_SIGNINGKEYPASSWORD }}" != '' && "${{ secrets.APK_KEYSTORE_BASE64 }}" != '' ]]; then
|
||||
echo "available=true" >> $GITHUB_OUTPUT;
|
||||
else
|
||||
echo "available=false" >> $GITHUB_OUTPUT;
|
||||
fi
|
||||
|
||||
- name: Secrets
|
||||
if: ${{ github.event_name != 'pull_request' && steps.secret-check.outputs.available == 'true' }}
|
||||
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
|
||||
run: |
|
||||
chmod +x gradlew
|
||||
./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" -Pwivrn_compress_glb=ON assemble${{ matrix.buildtype }}
|
||||
|
||||
- name: Prepare before archiving artifacts
|
||||
run: |
|
||||
mkdir apk
|
||||
mv $(find build/outputs/apk/ -name "*.apk") apk/
|
||||
mkdir debug
|
||||
mv build/intermediates/merged_native_libs/*/*/out/lib/* debug/
|
||||
find debug -name libopenxr_loader.so -delete
|
||||
|
||||
- name: Archive APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: apk-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
|
||||
path: apk/*.apk
|
||||
retention-days: 7
|
||||
|
||||
- name: Archive debug symbols
|
||||
if: ${{ matrix.buildtype != 'Release' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: symbols-${{ matrix.buildtype }}
|
||||
path: debug/**/*.so
|
||||
retention-days: 7
|
||||
|
||||
release:
|
||||
name: Create APK release
|
||||
runs-on: ubuntu-24.04
|
||||
needs: build-steam-frame
|
||||
# needs: [build-android-only, build-steam-frame]
|
||||
if: ${{ vars.APK_ONLY != '' }}
|
||||
|
||||
# steps:
|
||||
# - name: Download APK artifacts
|
||||
# uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# path: apk
|
||||
# pattern: 'apk-*'
|
||||
# merge-multiple: true
|
||||
#
|
||||
# - name: Download APK debug artifacts
|
||||
# uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# path: symbols
|
||||
# pattern: 'symbols-*'
|
||||
# merge-multiple: false
|
||||
steps:
|
||||
- name: Download APK artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: apk
|
||||
pattern: 'apk-*'
|
||||
merge-multiple: true
|
||||
|
||||
- name: Download Steam Frame artifact
|
||||
uses: actions/download-artifact@v4
|
||||
@@ -185,14 +177,21 @@ jobs:
|
||||
pattern: 'wivrn-frame-client.zip'
|
||||
merge-multiple: true
|
||||
|
||||
- name: Download APK debug artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: symbols
|
||||
pattern: 'symbols-*'
|
||||
merge-multiple: false
|
||||
|
||||
- name: Rename Steam Frame package
|
||||
run: |
|
||||
tree -F
|
||||
|
||||
# - name: Zip APK debug artifacts
|
||||
# run: |
|
||||
# cd symbols
|
||||
# zip -r ../debug-symbols.zip .
|
||||
- name: Zip APK debug artifacts
|
||||
run: |
|
||||
cd symbols
|
||||
zip -r ../debug-symbols.zip .
|
||||
|
||||
- name: APK Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
|
||||
Reference in New Issue
Block a user