CI - replace Windows installation step with microsoft/setup-msbuild
This commit is contained in:
@@ -40,9 +40,6 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
name: Windows
|
name: Windows
|
||||||
arch: x64
|
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"
|
configure: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
|
||||||
build: cmake --build build --parallel "$env:NUMBER_OF_PROCESSORS"
|
build: cmake --build build --parallel "$env:NUMBER_OF_PROCESSORS"
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
@@ -59,7 +56,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ matrix.arch }}-cmake-build-
|
${{ runner.os }}-${{ matrix.arch }}-cmake-build-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
if: matrix.os != 'windows-latest'
|
||||||
run: ${{ matrix.install }}
|
run: ${{ matrix.install }}
|
||||||
|
- name: Add msbuild to PATH
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
with:
|
||||||
|
msbuild-architecture: x64
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: ${{ matrix.configure }}
|
run: ${{ matrix.configure }}
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -45,9 +45,6 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
name: Windows
|
name: Windows
|
||||||
arch: x64
|
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"
|
configure: cmake -B build -DWITH_FFMPEG_JOBS="$env:NUMBER_OF_PROCESSORS"
|
||||||
release: |
|
release: |
|
||||||
cmake -B build -DWITH_FULL_RELEASE=Off -DWITH_NIGHTLY_RELEASE=On -DWITH_CLUB_FANTASTIC=Off
|
cmake -B build -DWITH_FULL_RELEASE=Off -DWITH_NIGHTLY_RELEASE=On -DWITH_CLUB_FANTASTIC=Off
|
||||||
@@ -68,9 +65,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ matrix.arch }}-cmake-build-
|
${{ runner.os }}-${{ matrix.arch }}-cmake-build-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
if: matrix.os != 'windows-latest'
|
||||||
run: ${{ matrix.install }}
|
run: ${{ matrix.install }}
|
||||||
- name: Configure
|
- name: Add msbuild to PATH
|
||||||
run: ${{ matrix.configure }}
|
if: matrix.os == 'windows-latest'
|
||||||
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
with:
|
||||||
|
msbuild-architecture: x64
|
||||||
- name: Create nightly release
|
- name: Create nightly release
|
||||||
run: ${{ matrix.release }}
|
run: ${{ matrix.release }}
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user