name: Python Windows CI on: [push, pull_request] jobs: # Building using the github runner environement directly. cmake: runs-on: windows-latest steps: - uses: actions/checkout@v2 - name: Check cmake run: cmake --version - 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"); Expand-Archive .\swigwin-4.0.2.zip .; echo "$((Get-Item .).FullName)/swigwin-4.0.2" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Check swig run: swig -version - name: Add Python binaries to path run: echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/Python39/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Configure run: cmake -S. -Bbuild -G "Visual Studio 16 2019" -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 run: cmake --build build --config Release --target RUN_TESTS -v -- /maxcpucount - name: Install run: cmake --build build --config Release --target INSTALL -v -- /maxcpucount