|
|
@@ -6,46 +6,52 @@ on:
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
SERVER_DEPS: libx264-dev libavcodec-dev libavutil-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev nlohmann-json3-dev librsvg2-dev libdrm-dev libglib2.0-dev-bin libpipewire-0.3-dev libpulse-dev libcli11-dev libnotify-dev libarchive-dev libudev-dev
|
|
|
|
SERVER_DEPS: libx264-dev libavcodec-dev libavutil-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev nlohmann-json3-dev librsvg2-dev libdrm-dev libglib2.0-dev-bin libpipewire-0.3-dev libcli11-dev libnotify-dev libarchive-dev libudev-dev
|
|
|
|
|
|
|
|
CSS: images/wivrn-${{(github.ref_type == 'tag' && 'release') || 'nightly'}}.css
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build-linux:
|
|
|
|
build-linux:
|
|
|
|
name: Linux
|
|
|
|
name: Linux
|
|
|
|
runs-on: ubuntu-24.04
|
|
|
|
runs-on: ubuntu-26.04
|
|
|
|
if: ${{ vars.APK_ONLY == '' }}
|
|
|
|
if: ${{ vars.APK_ONLY == '' }}
|
|
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
config:
|
|
|
|
- preset: 'client'
|
|
|
|
- preset: 'client-no-system-boost'
|
|
|
|
packages: libboost-all-dev libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev
|
|
|
|
packages: libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev libpipewire-0.3-dev
|
|
|
|
# dashboard requires a more recent Ubuntu, have it out of this job
|
|
|
|
- preset: 'dashboard'
|
|
|
|
|
|
|
|
packages: extra-cmake-modules libarchive-dev libboost-all-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libkirigami-dev librsvg2-dev nlohmann-json3-dev qcoro-qt6-dev qml6-module-org-kde-kirigamiaddons-formcard
|
|
|
|
- preset: 'dissector-no-system-boost'
|
|
|
|
- preset: 'dissector-no-system-boost'
|
|
|
|
packages: libboost-all-dev wireshark-dev
|
|
|
|
packages: libboost-all-dev wireshark-dev
|
|
|
|
- preset: 'server'
|
|
|
|
- preset: 'server'
|
|
|
|
packages: libboost-all-dev libsystemd-dev
|
|
|
|
packages: libboost-all-dev libsystemd-dev
|
|
|
|
|
|
|
|
# tracing is opt-in and rarely built; build it here so the instrumentation and the
|
|
|
|
|
|
|
|
# Perfetto SDK glue don't bitrot (WIVRN_TRACE_MONADO needs percetto, not packaged in CI)
|
|
|
|
|
|
|
|
- preset: 'server-tracing'
|
|
|
|
|
|
|
|
packages: libboost-all-dev libsystemd-dev
|
|
|
|
- preset: 'server-no-systemd'
|
|
|
|
- preset: 'server-no-systemd'
|
|
|
|
packages: libboost-all-dev
|
|
|
|
packages: libboost-all-dev
|
|
|
|
- preset: 'server-no-system-boost'
|
|
|
|
- preset: 'server-no-system-boost'
|
|
|
|
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 libvulkan-dev glslang-tools spirv-tools libwayland-dev libxrandr-dev ${{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: |
|
|
|
@@ -57,18 +63,23 @@ jobs:
|
|
|
|
restore-keys: cmake-linux-
|
|
|
|
restore-keys: cmake-linux-
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
if: ${{ matrix.config.preset == 'client' }}
|
|
|
|
if: ${{ startswith(matrix.config.preset, 'client') }}
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-x86_64.deb
|
|
|
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-x86_64.deb
|
|
|
|
sudo dpkg --install KTX-Software-4.4.2-Linux-x86_64.deb
|
|
|
|
sudo dpkg --install KTX-Software-4.4.2-Linux-x86_64.deb
|
|
|
|
npm install --global @gltf-transform/cli@4.1.1
|
|
|
|
npm install --global @gltf-transform/cli@4.1.1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Prepare Vulkan SDK
|
|
|
|
- name: Fetch Perfetto SDK
|
|
|
|
uses: humbletim/setup-vulkan-sdk@v1.2.1
|
|
|
|
if: ${{ matrix.config.preset == 'server-tracing' }}
|
|
|
|
with:
|
|
|
|
# The amalgamated SDK is two files; install them where server/CMakeLists.txt looks.
|
|
|
|
vulkan-query-version: 1.3.296.0
|
|
|
|
env:
|
|
|
|
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Reflect, SPIRV-Tools
|
|
|
|
PERFETTO_TAG: v51.0
|
|
|
|
vulkan-use-cache: true
|
|
|
|
run: |
|
|
|
|
|
|
|
|
sudo mkdir -p /usr/share/perfetto/sdk
|
|
|
|
|
|
|
|
for f in perfetto.h perfetto.cc; do
|
|
|
|
|
|
|
|
sudo curl -fsSL -o /usr/share/perfetto/sdk/$f \
|
|
|
|
|
|
|
|
https://raw.githubusercontent.com/google/perfetto/${PERFETTO_TAG}/sdk/$f
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure CMake
|
|
|
|
- name: Configure CMake
|
|
|
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
|
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
|
@@ -85,7 +96,7 @@ jobs:
|
|
|
|
- name: Package build dependencies
|
|
|
|
- name: Package build dependencies
|
|
|
|
if: ${{ matrix.config.preset == 'server' }}
|
|
|
|
if: ${{ matrix.config.preset == 'server' }}
|
|
|
|
# For easier packaging, build dependencies are made available as a separate archive
|
|
|
|
# For easier packaging, build dependencies are made available as a separate archive
|
|
|
|
run: (cd ${{github.workspace}}/cmake-fetch ; tar --create --xz *-src) > ${{github.workspace}}/server-build-deps.tar.xz
|
|
|
|
run: cd ${{github.workspace}}/cmake-fetch ; tar --create --xz --exclude .git --file ${{github.workspace}}/server-build-deps.tar.xz *-src
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
# Build your program with the given configuration
|
|
|
|
# Build your program with the given configuration
|
|
|
@@ -93,7 +104,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
|
|
|
@@ -107,57 +118,84 @@ jobs:
|
|
|
|
draft: true
|
|
|
|
draft: true
|
|
|
|
files: server-build-deps.tar.xz
|
|
|
|
files: server-build-deps.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
build-dashboard:
|
|
|
|
build-steam-frame:
|
|
|
|
#FIXME: merge with the matrixed build once Ubuntu gets updated
|
|
|
|
name: Steam Frame
|
|
|
|
name: Linux Dashboard
|
|
|
|
runs-on: ubuntu-24.04-arm
|
|
|
|
runs-on: ubuntu-24.04
|
|
|
|
|
|
|
|
container: ubuntu:plucky
|
|
|
|
|
|
|
|
if: ${{ vars.APK_ONLY == '' }}
|
|
|
|
if: ${{ vars.APK_ONLY == '' }}
|
|
|
|
|
|
|
|
container:
|
|
|
|
|
|
|
|
image: registry.gitlab.steamos.cloud/steamrt/steamrt4/sdk/arm64:4.0.20260805.254769
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
- ${{github.workspace}}/install:/tmp/install
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
|
|
|
|
|
|
|
|
- name: Prepare
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
key: cmake-linux-dashboard
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
fetch-tags: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Apt dependencies
|
|
|
|
|
|
|
|
uses: awalsh128/cache-apt-pkgs-action@v1.6.1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
packages: librsvg2-bin npm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: ccache
|
|
|
|
|
|
|
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
key: steam-frame
|
|
|
|
|
|
|
|
job-summary: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache@v5
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
key: cmake-frame
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.*
|
|
|
|
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.*
|
|
|
|
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
|
|
|
|
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
|
|
|
|
${{github.workspace}}/cmake-fetch/*.tar.*
|
|
|
|
${{github.workspace}}/cmake-fetch/*.tar.*
|
|
|
|
${{github.workspace}}/cmake-fetch/*.tgz
|
|
|
|
${{github.workspace}}/cmake-fetch/*.tgz
|
|
|
|
restore-keys: cmake-linux-
|
|
|
|
${{github.workspace}}/cmake-fetch/*-src/.git
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-arm64.deb
|
|
|
|
|
|
|
|
sudo dpkg --install KTX-Software-4.4.2-Linux-arm64.deb
|
|
|
|
|
|
|
|
npm install --global @gltf-transform/cli@4.1.1
|
|
|
|
|
|
|
|
|
|
|
|
- name: Configure CMake
|
|
|
|
- name: Configure CMake
|
|
|
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
|
|
|
|
|
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
|
|
|
|
|
|
run: >
|
|
|
|
run: >
|
|
|
|
cmake -B ${{github.workspace}}/build
|
|
|
|
cmake -B "$GITHUB_WORKSPACE/build"
|
|
|
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
|
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
|
|
-DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch
|
|
|
|
-DWIVRN_CSS=${{env.CSS}}
|
|
|
|
--preset dashboard
|
|
|
|
-DFETCHCONTENT_BASE_DIR="$GITHUB_WORKSPACE/cmake-fetch"
|
|
|
|
-DWIVRN_USE_SYSTEM_OPENXR=OFF
|
|
|
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
|
|
|
-DGIT_DESC=${{github.sha}}
|
|
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
|
|
-DGIT_COMMIT=${{github.sha}}
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
|
|
|
|
--preset frame
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
# Build your program with the given configuration
|
|
|
|
run: |
|
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
|
|
|
|
|
|
cd "$GITHUB_WORKSPACE/build"
|
|
|
|
|
|
|
|
DESTDIR="$GITHUB_WORKSPACE/install" ninja install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Archive
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v7
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: wivrn-frame-client.zip
|
|
|
|
|
|
|
|
path: install/usr
|
|
|
|
|
|
|
|
if-no-files-found: error
|
|
|
|
|
|
|
|
retention-days: 30
|
|
|
|
|
|
|
|
|
|
|
|
build-server-flatpak:
|
|
|
|
build-server-flatpak:
|
|
|
|
name: Linux server (flatpak)
|
|
|
|
name: Linux server (flatpak)
|
|
|
|
runs-on: ubuntu-24.04
|
|
|
|
runs-on: ubuntu-24.04
|
|
|
|
if: ${{ vars.APK_ONLY == '' }}
|
|
|
|
if: ${{ vars.APK_ONLY == '' }}
|
|
|
|
container:
|
|
|
|
container:
|
|
|
|
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.9
|
|
|
|
# Tag matches runtime-version in the manifest.
|
|
|
|
|
|
|
|
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
|
|
|
|
options: --privileged
|
|
|
|
options: --privileged
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
|
|
|
@@ -168,22 +206,18 @@ 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
|
|
|
|
# The manifest is regenerated on every commit with the git hash embedded,
|
|
|
|
|
|
|
|
# so its default (manifest-hash) cache key never hits. Key on the files
|
|
|
|
# Upload manually instead of using flatpak/flatpak-github-actions/flatpak-builder because
|
|
|
|
# that actually define the dependency set instead, so the toolchain
|
|
|
|
# it uses upload-artifact@v3
|
|
|
|
# downloads and build cache persist across commits.
|
|
|
|
- name: Publish artifact
|
|
|
|
cache-key: flatpak-builder-${{ hashFiles('flatpak/io.github.wivrn.wivrn.yml.in', 'flatpak/ct-ng-x86_64.config', 'flatpak/ct-ng-aarch64.config', 'monado-rev', 'CMakeLists.txt') }}
|
|
|
|
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 +231,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,18 +249,11 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
- name: Prepare Vulkan SDK
|
|
|
|
- uses: actions/cache@v5
|
|
|
|
uses: humbletim/setup-vulkan-sdk@v1.2.1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
vulkan-query-version: 1.3.296.0
|
|
|
|
|
|
|
|
vulkan-components: Glslang, SPIRV-Tools
|
|
|
|
|
|
|
|
vulkan-use-cache: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
key: cmake-android-${{matrix.buildtype}}
|
|
|
|
key: cmake-android-${{matrix.buildtype}}
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
@@ -237,9 +264,18 @@ jobs:
|
|
|
|
${{github.workspace}}/cmake-fetch/*.tgz
|
|
|
|
${{github.workspace}}/cmake-fetch/*.tgz
|
|
|
|
restore-keys: cmake-android-
|
|
|
|
restore-keys: cmake-android-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Gradle distribution and the Android plugin's dependencies.
|
|
|
|
|
|
|
|
- uses: actions/cache@v5
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
key: gradle-android-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle') }}
|
|
|
|
|
|
|
|
path: |
|
|
|
|
|
|
|
|
~/.gradle/caches
|
|
|
|
|
|
|
|
~/.gradle/wrapper
|
|
|
|
|
|
|
|
restore-keys: gradle-android-
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
sudo apt-get update && sudo apt-get install glslang-tools librsvg2-bin gettext
|
|
|
|
sudo apt-get update && sudo apt-get install glslang-tools spirv-tools librsvg2-bin gettext
|
|
|
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
|
|
|
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
|
|
|
|
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
|
|
|
@@ -294,29 +330,22 @@ jobs:
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${{ github.ref_type }} = 'tag' ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
CSS=images/wivrn-release.css
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
CSS=images/wivrn-nightly.css
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo Setting version $VERSION and version code $VERSION_CODE in manifest
|
|
|
|
echo Setting version $VERSION and version code $VERSION_CODE in manifest
|
|
|
|
echo Using stylesheet $CSS and name $APPNAME
|
|
|
|
echo Using stylesheet ${{env.CSS}} and name $APPNAME
|
|
|
|
|
|
|
|
|
|
|
|
chmod +x gradlew
|
|
|
|
chmod +x gradlew
|
|
|
|
./gradlew \
|
|
|
|
./gradlew \
|
|
|
|
-Pwivrn_version=$VERSION \
|
|
|
|
-Pwivrn_version=$VERSION \
|
|
|
|
-Pwivrn_versionCode=$VERSION_CODE \
|
|
|
|
-Pwivrn_versionCode=$VERSION_CODE \
|
|
|
|
-Psuffix=$SUFFIX \
|
|
|
|
-Psuffix=$SUFFIX \
|
|
|
|
-Pwivrn_css=$CSS \
|
|
|
|
-Pwivrn_css=${{env.CSS}} \
|
|
|
|
-Pwivrn_app_name="$APPNAME" \
|
|
|
|
-Pwivrn_app_name="$APPNAME" \
|
|
|
|
-Pwivrn_compress_glb=ON \
|
|
|
|
-Pwivrn_compress_glb=ON \
|
|
|
|
-Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \
|
|
|
|
-Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \
|
|
|
|
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 +362,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 +370,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
|
|
|
@@ -379,13 +408,13 @@ jobs:
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
apt update
|
|
|
|
apt update
|
|
|
|
apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev libarchive-dev npm
|
|
|
|
apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev libarchive-dev npm qml6-module-org-kde-kirigamiaddons-formcard
|
|
|
|
|
|
|
|
|
|
|
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
|
|
|
|
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
|
|
|
|
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 +456,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 +474,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 +489,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 +498,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
|
|
|
|