Update EWT to ETW #69
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: Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install dependencies | |
run: dotnet restore | |
- name: List installed packages | |
run: dotnet list package | |
- name: Setup MSBuild Path | |
uses: microsoft/[email protected] | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
- name: Build Debug | |
run: msbuild TameMyCerts\TameMyCerts.csproj -property:Configuration=debug | |
- name: Build TameMyCerts.Test | |
run: msbuild TameMyCerts\TameMyCerts.csproj -property:Configuration=release | |
- name: Save Build Output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-output | |
path: release/ | |
xUnit: | |
name: xUnit tests | |
runs-on: windows-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Download Build Output | |
uses: actions/download-artifact@v4 | |
with: | |
name: build-output | |
path: release | |
- name: Run xunit tests | |
run: dotnet test --no-build --verbosity minimal | |
EWTManifest: | |
name: Create ETW Manifest | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Setup MSBuild Path | |
uses: microsoft/[email protected] | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
- name: Find mc.exe | |
run: | | |
$path = Get-ChildItem -Path "C:\Users\runneradmin\.nuget" -Recurse -ErrorAction SilentlyContinue | |
$path | |
shell: pwsh | |
- name: Build ETW Manifest | |
run: msbuild Support.GenerateETWManifest\Support.GenerateETWManifest.csproj -property:Configuration=release | |
- name: Build TameMyCerts.Test | |
run: msbuild TameMyCerts\TameMyCerts.csproj -property:Configuration=release | |
- name: Run xunit tests | |
run: dotnet test --no-build --verbosity minimal |