Files
ortools-clone/.github/workflows/make_windows_dotnet.yml
2021-09-17 14:26:50 +02:00

32 lines
956 B
YAML

name: Make Windows .Net
on: [push, pull_request]
jobs:
# Building using the github runner environement directly.
make:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Check make
run: make --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: Check dotnet
run: dotnet --info
- name: Build third party
run: make third_party -j4
- name: Build C++
run: make cc -j4
- name: Build .Net
run: make dotnet -j4
- name: Test
run: make test_dotnet -j4
- name: Create nuget packages
run: make package_dotnet