Skip to content

Commit

Permalink
add MSVC 2019 preview to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasbuhr committed Oct 25, 2020
1 parent 76fae81 commit 455c163
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
}
- {
name: "Windows MSVC 2019 Preview (x64)",
os: windows-latest,
choco: 'install visualstudio2019buildtools-preview --ignoredetectedreboot --package-parameters "--add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools" --pre',
cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Auxiliary/Build/vcvars64.bat",
}

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -79,6 +86,13 @@ jobs:
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get install g++-10
- name: Install MSVC
id: install_msvc
if: startsWith(matrix.config.os, 'windows') && ( matrix.config.choco != '' )
uses: crazy-max/ghaction-chocolatey@v1
with:
args: ${{ matrix.config.choco }}

- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
Expand Down

0 comments on commit 455c163

Please sign in to comment.