Skip to content

Commit f43d108

Browse files
authored
fix MSVC CI (#106)
Replace hardcoded msvc path resolution
1 parent 4689ded commit f43d108

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/continuous.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,18 @@ jobs:
117117
# Scoop modifies the PATH so we make it available for the next steps of the job
118118
echo "${env:PATH}" >> ${env:GITHUB_PATH}
119119
120+
- name: Setup MSVC
121+
uses: ilammy/msvc-dev-cmd@v1
122+
with:
123+
arch: x64
124+
120125
- name: Configure and build
121126
shell: cmd
122127
run: |
123-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x64
124128
cmake --version
125129
cmake -G Ninja ^
130+
-DCMAKE_C_COMPILER=cl.exe ^
131+
-DCMAKE_CXX_COMPILER=cl.exe ^
126132
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache ^
127133
-DCMAKE_BUILD_TYPE=${{ matrix.config }} ^
128134
-B build ^

0 commit comments

Comments
 (0)