diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 9fab8c35..f6ce5448 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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 @@ -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