Windows (VS 2022/Ninja)
@@ -11,12 +11,10 @@ jobs:
matrix:
config:
- {
- name: "Windows (VS17 2022)",
- os: windows-latest,
- cc: "cl",
- cxx: "cl",
- environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
- generators: "Visual Studio 17 2022"
+ name: "Windows (VS 2022/Ninja)",
+ os: windows-2022,
+ environment_script: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat",
+ generators: "Ninja"
}
steps:
@@ -24,13 +22,13 @@ jobs:
- name: Install deps
run: |
- choco install ninja cmake openssl
- ninja --version
- cmake --version
- openssl version
+ choco install openssl
- name: Build
- shell: bash
+ shell: cmd
run: |
- cmake -S . -B . -G "${{ matrix.config.generators }}"
- cmake --build .
+ call "${{ matrix.config.environment_script }}"
+ cmake --version
+ ninja --version
+ cmake -S . -B build -G "${{ matrix.config.generators }}"
+ cmake --build build
