2020 env :
2121 CC : ${{ matrix.cc }}
2222 CXX : ${{ matrix.cxx }}
23+ STEAMRT_SNAPSHOT : latest-steam-client-general-availability
2324 steps :
2425 - name : Checkout
2526 uses : actions/checkout@v4
@@ -38,10 +39,10 @@ jobs:
3839 uses : actions/cache@v4
3940 with :
4041 path : com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
41- key : ${{ runner.os }}-steam-runtime
42+ key : steam-runtime- ${{ env.STEAMRT_SNAPSHOT }}
4243 - name : Download steam-runtime
4344 if : startsWith(matrix.os, 'ubuntu') && steps.cache-steam-runtime.outputs.cache-hit != 'true'
44- run : wget --no-verbose https://repo.steampowered.com/steamrt-images-scout/snapshots/0.20210610.0 /com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
45+ run : wget --no-verbose https://repo.steampowered.com/steamrt-images-scout/snapshots/${{ env.STEAMRT_SNAPSHOT }} /com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
4546 - name : Install steam runtime
4647 if : startsWith(matrix.os, 'ubuntu')
4748 run : |
@@ -52,14 +53,15 @@ jobs:
5253 - name : Build on Linux
5354 if : startsWith(matrix.os, 'ubuntu')
5455 run : |
55- schroot --chroot steamrt_scout_i386 -- cmake -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_INSTALL_PREFIX="$PWD/dist"
56+ schroot --chroot steamrt_scout_i386 -- cmake -GNinja - DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_INSTALL_PREFIX="$PWD/dist"
5657 schroot --chroot steamrt_scout_i386 -- cmake --build build --target all
5758 schroot --chroot steamrt_scout_i386 -- cmake --build build --target install
5859 - name : Build on Linux with vgui
5960 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.cc, 'gcc')
6061 run : |
61- schroot --chroot steamrt_scout_i386 -- cmake -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
62+ schroot --chroot steamrt_scout_i386 -- cmake -GNinja - DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
6263 cp vgui_support/vgui-dev/lib/vgui.so build-vgui/cl_dll
64+ cp vgui_support/vgui-dev/lib/vgui.so build-vgui
6365 schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target all
6466 schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target install
6567
0 commit comments