name: C# Build | |
on: | |
workflow_call: | |
jobs: | |
build: | |
name: "${{ matrix.os }}" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-11, windows-2022] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
- name: Build artifacts | |
working-directory: ./csharp | |
run: | | |
dotnet --version | |
dotnet build |