protobuffer poc #98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
dotnet: [net481, net6] | |
configuration: [Debug, Release] | |
runs-on: windows-latest | |
# runs-on: ubuntu-latest # Error: setup-msbuild can only be run on Windows runners | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: microsoft/setup-msbuild@v2 | |
- name: C# problem matcher | |
run: | | |
Invoke-WebRequest "https://raw.githubusercontent.com/actions/setup-dotnet/main/.github/csc.json" -OutFile "csc.json" | |
echo "::add-matcher::csc.json" | |
# uses: actions/setup-dotnet@v2 | |
# with: | |
# dotnet-version: 5.0.x | |
# - name: Restore dependencies | |
# run: dotnet restore | |
- name: Add Packages | |
run: | | |
dotnet restore | |
- name: Build | |
# run: make all # builds the Debug configuration | |
run: | | |
msbuild -p:Build${{ matrix.dotnet }}=true /property:Configuration=${{ matrix.configuration }} | |
# run: dotnet build --no-restore | |
- name: Test | |
run: | | |
dotnet test --no-build --verbosity normal Tests\bin\${{ matrix.configuration }}\${{ matrix.dotnet }}*\tests.dll | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: EDSEditor_${{ matrix.dotnet }} | |
path: EDSEditorGUI\bin\Release\ |