Skip to content

Parser for writing rules #62

Parser for writing rules

Parser for writing rules #62

Workflow file for this run

name: Windows Build
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
platform: [x64, ARM64]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore NuGet packages
run: dotnet restore InstantTraceViewer.sln
- name: Publish UI
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild -m -target:Publish -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:PublishProfile=src\InstantTraceViewerUI\Properties\PublishProfiles\win-${{ matrix.platform }}.pubxml -p:NoWarn=1591 .\src\InstantTraceViewerUI\InstantTraceViewerUI.csproj
- name: Upload Instant Trace Viewer
uses: actions/upload-artifact@v4
with:
name: InstantTraceViewer-${{ matrix.platform }}
path: src/InstantTraceViewerUI/bin/${{ matrix.platform }}/Release/net8.0-windows10.0.22621.0/publish
if-no-files-found: error
- name: Build Everything
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild -m -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:NoWarn=1591 InstantTraceViewer.sln
# FIXME: ParseWinError excluded because C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\shared\winerror.h is not found on the build agent.
- name: Run Unit Tests
run: dotnet test src/UnitTests/UnitTests.csproj --configuration Release --filter "FullyQualifiedName!~ParseWinError"