Skip to content

another typing fix #225

another typing fix

another typing fix #225

name: amd64 Windows CMake .Net
on: [push, pull_request]
jobs:
# Building using the github runner environement directly.
cmake:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install SWIG 4.1.1
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.1.1.zip","swigwin-4.1.1.zip");
Expand-Archive .\swigwin-4.1.1.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.1.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Check swig
run: swig -version
# Install .NET SDKs
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Check dotnet
run: dotnet --info
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DBUILD_DOTNET=ON -DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -v -- /maxcpucount
- name: Test
run: cmake --build build --config Release --target RUN_TESTS -v -- /maxcpucount
- name: Install
run: cmake --build build --config Release --target INSTALL -v -- /maxcpucount