CI - replace Windows installation step with microsoft/setup-msbuild
This commit is contained in:
@@ -40,9 +40,6 @@ jobs:
|
||||
- os: windows-latest
|
||||
name: Windows
|
||||
arch: x64
|
||||
install: |
|
||||
$vsPath = &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
|
||||
&"$vsPath\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||
configure: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
|
||||
build: cmake --build build --parallel "$env:NUMBER_OF_PROCESSORS"
|
||||
name: ${{ matrix.name }}
|
||||
@@ -59,7 +56,13 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ matrix.arch }}-cmake-build-
|
||||
- name: Install dependencies
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: ${{ matrix.install }}
|
||||
- name: Add msbuild to PATH
|
||||
if: matrix.os == 'windows-latest'
|
||||
uses: microsoft/setup-msbuild@v2
|
||||
with:
|
||||
msbuild-architecture: x64
|
||||
- name: Configure
|
||||
run: ${{ matrix.configure }}
|
||||
- name: Build
|
||||
|
||||
Reference in New Issue
Block a user