Update Github actions

This commit is contained in:
Patrick Nicolas
2026-06-14 14:16:51 +02:00
parent 9940580fbd
commit 3f1874bdba
4 changed files with 33 additions and 42 deletions
+7 -7
View File
@@ -18,7 +18,7 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer'] buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
# Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly # Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
repository: 'WiVRn/WiVRn' repository: 'WiVRn/WiVRn'
@@ -26,7 +26,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Prepare Vulkan SDK - name: Prepare Vulkan SDK
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944 uses: humbletim/setup-vulkan-sdk@v1.2.1
with: with:
vulkan-query-version: 1.3.296.0 vulkan-query-version: 1.3.296.0
vulkan-components: Glslang, SPIRV-Tools vulkan-components: Glslang, SPIRV-Tools
@@ -72,7 +72,7 @@ jobs:
find debug -name libopenxr_loader.so -delete find debug -name libopenxr_loader.so -delete
- name: Archive APK - name: Archive APK
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: apk-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }} name: apk-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
path: apk/*.apk path: apk/*.apk
@@ -80,7 +80,7 @@ jobs:
- name: Archive debug symbols - name: Archive debug symbols
if: ${{ matrix.buildtype != 'Release' }} if: ${{ matrix.buildtype != 'Release' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: symbols-${{ matrix.buildtype }} name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so path: debug/**/*.so
@@ -94,7 +94,7 @@ jobs:
steps: steps:
- name: Download APK artifacts - name: Download APK artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
path: apk path: apk
pattern: 'apk-*' pattern: 'apk-*'
@@ -109,7 +109,7 @@ jobs:
done done
- name: Download APK debug artifacts - name: Download APK debug artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
path: symbols path: symbols
pattern: 'symbols-*' pattern: 'symbols-*'
@@ -121,7 +121,7 @@ jobs:
zip -r ../debug-symbols.zip . zip -r ../debug-symbols.zip .
- name: APK Release - name: APK Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v3
with: with:
token: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }} token: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }}
tag_name: "apk-${{ github.sha }}" tag_name: "apk-${{ github.sha }}"
+24 -33
View File
@@ -31,21 +31,21 @@ jobs:
packages: libsystemd-dev packages: libsystemd-dev
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Apt dependencies - name: Apt dependencies
uses: awalsh128/cache-apt-pkgs-action@v1.6.0 uses: awalsh128/cache-apt-pkgs-action@v1.6.1
with: with:
packages: ccache ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}} packages: ccache ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}}
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2.23
with: with:
key: linux-${{matrix.config.preset}} key: linux-${{matrix.config.preset}}
job-summary: "" job-summary: ""
restore-keys: linux- restore-keys: linux-
- uses: actions/cache@v4 - uses: actions/cache@v5
with: with:
key: cmake-linux-${{matrix.config.preset}} key: cmake-linux-${{matrix.config.preset}}
path: | path: |
@@ -93,7 +93,7 @@ jobs:
- name: Publish build dependencies - name: Publish build dependencies
if: ${{ matrix.config.preset == 'server' }} if: ${{ matrix.config.preset == 'server' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: server-build-deps name: server-build-deps
path: server-build-deps.tar.xz path: server-build-deps.tar.xz
@@ -115,14 +115,14 @@ jobs:
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Prepare - name: Prepare
run: | run: |
apt-get update apt-get update
apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules qml6-module-org-kde-kirigamiaddons-formcard apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules qml6-module-org-kde-kirigamiaddons-formcard
- uses: actions/cache@v4 - uses: actions/cache@v5
with: with:
key: cmake-linux-dashboard key: cmake-linux-dashboard
path: | path: |
@@ -157,7 +157,7 @@ jobs:
options: --privileged options: --privileged
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -168,22 +168,13 @@ jobs:
tools/gen_flatpak_manifest.py --gitlocal --out flatpak tools/gen_flatpak_manifest.py --gitlocal --out flatpak
cat flatpak/io.github.wivrn.wivrn.yml cat flatpak/io.github.wivrn.wivrn.yml
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.4 - uses: flatpak/flatpak-github-actions/flatpak-builder@v6.7
with: with:
manifest-path: flatpak/io.github.wivrn.wivrn.yml manifest-path: flatpak/io.github.wivrn.wivrn.yml
bundle: wivrn-server.flatpak bundle: wivrn-server.flatpak
upload-artifact: false
# Upload manually instead of using flatpak/flatpak-github-actions/flatpak-builder because
# it uses upload-artifact@v3
- name: Publish artifact
uses: actions/upload-artifact@v4
with:
name: wivrn-flatpak-x86_64
path: wivrn-server.flatpak
- name: Debug bundle - name: Debug bundle
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
if: failure() if: failure()
with: with:
name: flatpak-debug name: flatpak-debug
@@ -197,7 +188,7 @@ jobs:
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -215,7 +206,7 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus'] buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -226,7 +217,7 @@ jobs:
vulkan-components: Glslang, SPIRV-Tools vulkan-components: Glslang, SPIRV-Tools
vulkan-use-cache: true vulkan-use-cache: true
- uses: actions/cache@v4 - uses: actions/cache@v5
with: with:
key: cmake-android-${{matrix.buildtype}} key: cmake-android-${{matrix.buildtype}}
path: | path: |
@@ -316,7 +307,7 @@ jobs:
assemble${{ matrix.buildtype }} assemble${{ matrix.buildtype }}
- name: Upload build dir - name: Upload build dir
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
if: failure() if: failure()
with: with:
name: android-cxx-debug-${{ matrix.buildtype }} name: android-cxx-debug-${{ matrix.buildtype }}
@@ -333,7 +324,7 @@ jobs:
find debug -name libopenxr_loader.so -delete find debug -name libopenxr_loader.so -delete
- name: Archive APK - name: Archive APK
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
if: ${{ matrix.buildtype != 'Oculus' }} if: ${{ matrix.buildtype != 'Oculus' }}
with: with:
name: apk-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }} name: apk-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
@@ -341,7 +332,7 @@ jobs:
retention-days: 30 retention-days: 30
- name: Archive debug symbols - name: Archive debug symbols
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: symbols-${{ matrix.buildtype }} name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so path: debug/**/*.so
@@ -385,7 +376,7 @@ jobs:
sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb
npm install --global @gltf-transform/cli npm install --global @gltf-transform/cli
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
path: wivrn path: wivrn
@@ -427,7 +418,7 @@ jobs:
run: dpkg-buildpackage --build=binary --no-sign run: dpkg-buildpackage --build=binary --no-sign
- name: Publish package - name: Publish package
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: wivrn-${{ matrix.distro }} name: wivrn-${{ matrix.distro }}
path: | path: |
@@ -445,7 +436,7 @@ jobs:
if: success() && startsWith(github.ref, 'refs/tags/') if: success() && startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
path: wivrn path: wivrn
@@ -460,7 +451,7 @@ jobs:
echo "available=false" >> $GITHUB_OUTPUT; echo "available=false" >> $GITHUB_OUTPUT;
fi fi
- uses: actions/checkout@v4 - uses: actions/checkout@v6
if: ${{ steps.flathub-token-check.outputs.available == 'true' }} if: ${{ steps.flathub-token-check.outputs.available == 'true' }}
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -469,19 +460,19 @@ jobs:
token: ${{ secrets.FLATHUB_TOKEN }} token: ${{ secrets.FLATHUB_TOKEN }}
- name: Download artifacts (APK) - name: Download artifacts (APK)
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
name: apk-Release name: apk-Release
path: apk path: apk
- name: Download artifacts (flatpak) - name: Download artifacts (flatpak)
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
name: wivrn-flatpak-x86_64 name: wivrn-server-x86_64.flatpak
path: flatpak path: flatpak
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v3
with: with:
tag_name: ${{ inputs.ref }} tag_name: ${{ inputs.ref }}
generate_release_notes: true generate_release_notes: true
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- 'common' - 'common'
- 'tools/wireshark' - 'tools/wireshark'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Run clang-format style check for C/C++/Protobuf programs. - name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.16.0 uses: jidicula/clang-format-action@v4.16.0
with: with:
+1 -1
View File
@@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Install dependencies - name: Install dependencies
run: | run: |