File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,20 +47,29 @@ jobs:
4747
4848 steps :
4949 - uses : actions/checkout@v4
50-
51- - name : Add MSBuild to PATH
52- uses : compnerd/gha-setup-vsdevenv@v6
53-
5450 - uses : actions/setup-python@v5
5551 with :
5652 python-version : ' 3.13'
5753
54+ - name : Add MSBuild to PATH
55+ uses : compnerd/gha-setup-vsdevenv@v6
56+
5857 - name : Pick game
5958 if : inputs.project-group == 'game' || inputs.project-group == 'shaders'
6059 working-directory : ' src'
6160 shell : bash
6261 run : sed -i 's/\/hl2mp \/tf/\/${{inputs.game}}/' create${{inputs.project-group}}projects.bat
6362
63+ # HACKHACK: MSBuild doesn't seem to recognize Python even when its directory is within PATH,
64+ # so we currently have to make it call Python directly.
65+ # This assumes %Python3_ROOT_DIR% will always be set by setup-python above.
66+ if : inputs.project-group == 'game' || inputs.project-group == 'all'
67+ working-directory : ' src/game/server'
68+ shell : bash
69+ run : |
70+ sed -i 's/\"python/\"%Python3_ROOT_DIR%\\python/' server_base.vpc
71+ cat server_base.vpc
72+
6473 - name : Create project files
6574 working-directory : ' src'
6675 shell : cmd
@@ -128,9 +137,6 @@ jobs:
128137 sudo apt-get update
129138 sudo apt-get -y install podman python3
130139
131- - name : ccache
132- uses : hendrikmuhs/ccache-action@v1.2
133-
134140 - name : Pick game
135141 if : inputs.project-group == 'game' || inputs.project-group == 'shaders'
136142 working-directory : ' src'
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ function run_in_sniper() {
1313 exit 1
1414 fi
1515
16+ # Create .ccache if it doesn't exist
17+ if [ ! -d " $HOME /.ccache" ]; then
18+ mkdir " $HOME /.ccache"
19+ fi
20+
1621 # Let's say we run as /home/misyl/my_mod/src/myscript
1722 # We want to mount /home/misyl/my_mod, and then launch
1823 # src/myscript inside of that.
You can’t perform that action at this time.
0 commit comments