Skip to content

Commit d2dfe3f

Browse files
authored
install msvc for Windows
1 parent c590cb9 commit d2dfe3f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
fi
5656
shell: bash
5757

58+
- name: Setup MSVC environment
59+
if: matrix.os == 'windows-latest'
60+
uses: ilammy/msvc-dev-cmd@v1
61+
with:
62+
arch: x64
63+
5864
- name: Configure CMake
5965
run: |
6066
mkdir build
@@ -65,10 +71,8 @@ jobs:
6571
fi
6672
elif [ "${{ matrix.os }}" == "windows-latest" ]; then
6773
if [ "${{ matrix.compiler }}" == "msvc" ]; then
68-
# Force the real MSVC toolset (cl.exe)
6974
cmake -G "Visual Studio 17 2022" -A x64 ..
7075
elif [ "${{ matrix.compiler }}" == "clang" ]; then
71-
# Explicit clang-cl on Windows
7276
cmake -G Ninja -DCMAKE_CXX_COMPILER=clang-cl ..
7377
fi
7478
fi

0 commit comments

Comments
 (0)