1515 options :
1616 - ' OFF'
1717 - ' ON'
18+ steamrt_snapshot :
19+ type : string
20+ description : SteamRT Snapshot
21+ default : ' latest-steam-client-general-availability'
1822jobs :
1923 build :
2024 runs-on : ${{ matrix.os }}
@@ -48,10 +52,10 @@ jobs:
4852 uses : actions/cache@v4
4953 with :
5054 path : com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
51- key : ${{ runner.os }}-steam-runtime
55+ key : steam-runtime- ${{ github.event.inputs.steamrt_snapshot }}
5256 - name : Download steam-runtime
5357 if : startsWith(matrix.os, 'ubuntu') && steps.cache-steam-runtime.outputs.cache-hit != 'true'
54- run : wget --no-verbose https://repo.steampowered.com/steamrt-images-scout/snapshots/0.20210610.0 /com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
58+ run : wget --no-verbose https://repo.steampowered.com/steamrt-images-scout/snapshots/${{ github.event.inputs.steamrt_snapshot }} /com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
5559 - name : Install steam runtime
5660 if : startsWith(matrix.os, 'ubuntu')
5761 run : |
@@ -64,10 +68,11 @@ jobs:
6468 run : |
6569 mkdir -p build/cl_dll
6670 cp vgui_support/vgui-dev/lib/vgui.so build/cl_dll
71+ cp vgui_support/vgui-dev/lib/vgui.so build
6772 - name : Build on Linux
6873 if : startsWith(matrix.os, 'ubuntu')
6974 run : |
70- schroot --chroot steamrt_scout_i386 -- cmake -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_BUILD_TYPE=${{ github.event.inputs.buildtype }} -DCMAKE_INSTALL_PREFIX="$PWD/dist" -DUSE_VGUI=${{ github.event.inputs.usevgui }}
75+ schroot --chroot steamrt_scout_i386 -- cmake -GNinja - B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_BUILD_TYPE=${{ github.event.inputs.buildtype }} -DCMAKE_INSTALL_PREFIX="$PWD/dist" -DUSE_VGUI=${{ github.event.inputs.usevgui }}
7176 schroot --chroot steamrt_scout_i386 -- cmake --build build --target all
7277 schroot --chroot steamrt_scout_i386 -- cmake --build build --target install
7378
9398 run : |
9499 copy build/cl_dll/Debug/client.pdb dist/${{ steps.extract_gamedir.outputs.gamedir }}/cl_dlls/
95100 copy build/dlls/Debug/hl.pdb dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/
96- - name : Delete .lib files from dist
97- if : startsWith(matrix.os, 'windows')
98- run : |
99- Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/cl_dlls/client.lib
100- Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/hl.lib
101101 - name : Upload linux artifact
102102 if : startsWith(matrix.os, 'ubuntu')
103103 uses : actions/upload-artifact@v4
0 commit comments