diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index e462a78c..f4c29601 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -7,6 +7,7 @@ on: env: 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 libcli11-dev libnotify-dev libarchive-dev libudev-dev + CSS: images/wivrn-${{(github.ref_type == 'tag' && 'release') || 'nightly'}}.css jobs: build-linux: @@ -117,6 +118,73 @@ jobs: draft: true files: server-build-deps.tar.xz + build-steam-frame: + name: Steam Frame + runs-on: ubuntu-26.04-arm + 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: + - uses: actions/checkout@v6 + with: + 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: | + ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.* + ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip + ${{github.workspace}}/cmake-fetch/*.tar.* + ${{github.workspace}}/cmake-fetch/*.tgz + ${{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 + run: > + cmake -B ${{github.workspace}}/build + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + -DWIVRN_CSS=${{env.CSS}} + -DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch + -DCMAKE_C_COMPILER_LAUNCHER=ccache + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache + -DCMAKE_INSTALL_PREFIX=/usr + --preset frame + + - name: Build + run: | + git config --global --add safe.directory $(pwd) + cd ${{github.workspace}}/build + DESTDIR=/tmp/install ninja install + + - name: Archive + uses: actions/upload-artifact@v7 + with: + name: wivrn-frame-client.zip + path: ${{github.workspace}}/*/usr + if-no-files-found: error + retention-days: 30 + build-server-flatpak: name: Linux server (flatpak) runs-on: ubuntu-24.04 @@ -262,22 +330,15 @@ jobs: 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 Using stylesheet $CSS and name $APPNAME + echo Using stylesheet ${{env.CSS}} and name $APPNAME chmod +x gradlew ./gradlew \ -Pwivrn_version=$VERSION \ -Pwivrn_versionCode=$VERSION_CODE \ -Psuffix=$SUFFIX \ - -Pwivrn_css=$CSS \ + -Pwivrn_css=${{env.CSS}} \ -Pwivrn_app_name="$APPNAME" \ -Pwivrn_compress_glb=ON \ -Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \