Skip to content

Commit 7660416

Browse files
committed
Only generate cmake when cache doesn't exist
1 parent c0bf9cf commit 7660416

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
uses: ilammy/msvc-dev-cmd@v1.13.0
1414
with:
1515
arch: x86
16-
toolset: "14.44.35207"
1716

1817
- name: Get CMake
1918
uses: lukka/get-cmake@v3.31.6
@@ -33,9 +32,11 @@ jobs:
3332
3433
- name: Configure and build
3534
run: |
36-
if (!(Test-Path "bin")) { mkdir bin }
35+
if (!(Test-Path "bin")) {
36+
mkdir bin
37+
cmake -Bbin -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE .
38+
}
3739
cd bin
38-
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE ../
3940
cmake --build . --config Release --target TrilogyChaosMod.SA -j 8 --
4041
# env:
4142
# SCCACHE_GHA_ENABLED: "true"

0 commit comments

Comments
 (0)