-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (39 loc) · 1.35 KB
/
msvc-17-10.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX short identifier: BSL-1.0
name: msvc-17-10
on:
push:
paths:
- '.github/**'
- 'cmake/**'
- 'cml/**'
- 'tests/**'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'CML.cmake'
- 'vcpkg.json'
jobs:
msvc-17-10:
name: MSVC 17.10
runs-on: windows-2022
steps:
- name: Install MSVC 17.10
shell: pwsh
run: |
$vspath = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise'
Test-Path -Path $vspath | Should -Be $true
$vsinstaller = 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe'
Test-Path -Path $vsinstaller | Should -Be $true
Start-Process -NoNewWindow -Wait -FilePath $vsinstaller -ArgumentList `
'modify', '--installPath', "`"$vspath`"", '--quiet', '--norestart', '--nocache', '--noUpdateInstaller', `
'--add', 'Microsoft.VisualStudio.Component.VC.14.40.17.10.x86.x64'
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.29.0"
- uses: lukka/run-vcpkg@v11
- uses: lukka/run-cmake@v10
with:
configurePreset: "cml-ci-msvc17-mt-s"
configurePresetAdditionalArgs: "['-T version=14.40']"
buildPreset: "cml-ci-msvc17-mt-s-release"
testPreset: "cml-ci-msvc17-mt-s-release-test"