@@ -35,10 +35,19 @@ jobs:
35
35
sudo apt-get update
36
36
sudo apt-get install -y libegl1-mesa-dev libgl1-mesa-dev ninja-build
37
37
38
- - name : Install System Dependencies (Windows)
38
+ - name : Setup Developer Command Prompt (Windows)
39
39
if : runner.os == 'Windows'
40
+ uses : ilammy/msvc-dev-cmd@v1
41
+
42
+ - name : Install Ninja (Windows)
43
+ if : runner.os == 'Windows'
44
+ shell : pwsh
40
45
run : |
41
- choco install ninja
46
+ $NinjaPath = "C:\Program Files\Ninja"
47
+ New-Item -ItemType Directory -Path $NinjaPath -Force
48
+ Invoke-WebRequest "https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip" -OutFile "ninja.zip"
49
+ Expand-Archive "ninja.zip" -DestinationPath $NinjaPath
50
+ Add-Content $env:GITHUB_PATH "$NinjaPath"
42
51
43
52
- name : Install Dependencies
44
53
run : |
72
81
if [ "${{ runner.os }}" == "Windows" ]; then
73
82
echo "build-output-dir=${{ github.workspace }}\\build\\${{ matrix.build_type }}" >> "$GITHUB_OUTPUT"
74
83
echo "game-path=src\\game\\stabby.exe" >> "$GITHUB_OUTPUT"
84
+ echo "preset=conan-default" >> "$GITHUB_OUTPUT"
75
85
else
76
86
echo "build-output-dir=${{ github.workspace }}/build/${{ matrix.build_type }}" >> "$GITHUB_OUTPUT"
77
87
echo "game-path=src/game/stabby" >> "$GITHUB_OUTPUT"
88
+ echo "preset=conan-release" >> "$GITHUB_OUTPUT"
78
89
fi
79
90
80
91
- name : Configure CMake
86
97
build_dir="${{ github.workspace }}/build/${{ matrix.build_type }}"
87
98
fi
88
99
89
- cmake --preset conan-default \
100
+ cmake --preset ${{ steps.strings.outputs.preset }} \
90
101
-S . \
91
102
-B "$build_dir" \
92
103
-G Ninja \
0 commit comments