Skip to content

GitHub Actions: Added the installation of .NET 6.0 for building the N… #312

GitHub Actions: Added the installation of .NET 6.0 for building the N…

GitHub Actions: Added the installation of .NET 6.0 for building the N… #312

name: Build NuGet package
on: [push, pull_request]
env:
MSBuildEnableWorkloadResolver: false
jobs:
build:
strategy:
matrix:
toolset: [x64]
config: [Debug, Release]
runs-on: windows-2022
name: Windows 10, ${{ matrix.config }} ${{ matrix.toolset }}
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install python packages
working-directory: ${{github.workspace}}
run: python -m pip install -r ./BuildTools/.NET/requirements.txt
- name: Build and run
working-directory: ${{github.workspace}}
run: python ./BuildTools/.NET/dotnet-build-package.py -c ${{matrix.config}} -s ./BuildTools/.NET/dotnet-build-settings.json -d ./ --dotnet-tests --free-memory