Skip to content

Commit

Permalink
Add build and test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
demianmnave committed Nov 19, 2024
1 parent 871ea2c commit 98ed95a
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/ninja-msvc17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on: push

jobs:
job:
name: VS 2022 update test
name: MSVC 17.10, CMake 3.27
runs-on: windows-2022
steps:
- name: Run vs_installer.exe
- name: Install MSVC 17.10
shell: pwsh
run: |
$vspath = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise'
Expand All @@ -21,14 +21,19 @@ jobs:
'modify', '--installPath', "`"$vspath`"", '--quiet', '--norestart', '--nocache', '--noUpdateInstaller', `
'--add', 'Microsoft.VisualStudio.Component.VC.14.40.17.10.x86.x64'
# Get-ChildItem $env:LOCALAPPDATA\Temp\dd_installer_* | Get-Content
Get-ChildItem -Path (Join-Path $vspath 'VC\Tools\MSVC')
#$vsbin = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64'
#Test-Path -Path $vsbin | Should -Be $true
#$clexe = Join-Path $vsbin 'cl.exe'
#Test-Path -Path $clexe | Should -Be $true
#& $clexe /?
- name: Pull cmake 3.27
uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.27.0"
useCloudCache: true

- name: Checkout CML
uses: actions/checkout@v4

- name: Build and test with MSVC 17.10
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"

0 comments on commit 98ed95a

Please sign in to comment.