polish github cmake windows workflows

This commit is contained in:
Laurent Perron
2022-02-25 08:50:36 +01:00
parent 157e952c4a
commit 62bf4e0304
4 changed files with 4 additions and 5 deletions

View File

@@ -13,7 +13,6 @@ jobs:
python-version: '3.10'
- name: Install python3
run: python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install SWIG 4.0.2
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.0.2.zip","swigwin-4.0.2.zip");
@@ -26,7 +25,7 @@ jobs:
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON -DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -v -- /maxcpucount
- name: Test