Skip to content

Commit 455c163

Browse files
committed
add MSVC 2019 preview to github actions
1 parent 76fae81 commit 455c163

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/cmake.yml

+14
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
cxx: "cl",
4545
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
4646
}
47+
- {
48+
name: "Windows MSVC 2019 Preview (x64)",
49+
os: windows-latest,
50+
choco: 'install visualstudio2019buildtools-preview --ignoredetectedreboot --package-parameters "--add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools" --pre',
51+
cxx: "cl",
52+
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Auxiliary/Build/vcvars64.bat",
53+
}
4754

4855
steps:
4956
- uses: actions/checkout@v2
@@ -79,6 +86,13 @@ jobs:
7986
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
8087
sudo apt-get install g++-10
8188
89+
- name: Install MSVC
90+
id: install_msvc
91+
if: startsWith(matrix.config.os, 'windows') && ( matrix.config.choco != '' )
92+
uses: crazy-max/ghaction-chocolatey@v1
93+
with:
94+
args: ${{ matrix.config.choco }}
95+
8296
- name: Create Build Environment
8397
# Some projects don't allow in-source building, so create a separate build directory
8498
# We'll use this as our working directory for all subsequent commands

0 commit comments

Comments
 (0)