Fix the Enums for the WPA Plugin (#4461) #167
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: Plugins | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- .github/workflows/plugins.yml | |
- src/plugins/** | |
pull_request: | |
branches: [ main ] | |
paths: | |
- .github/workflows/plugins.yml | |
- src/plugins/** | |
permissions: read-all | |
jobs: | |
build_dbgext: | |
name: Build WinDbg Extension | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
matrix: | |
configuration: [Release, Debug] | |
platform: [x86, x64] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce | |
- name: Build | |
run: msbuild src\plugins\msquic.windbg.sln /p:configuration=${{ matrix.configuration }} /p:platform=${{ matrix.platform }} | |
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a | |
with: | |
name: bin_windbg_${{ matrix.configuration }}_${{ matrix.platform }} | |
path: | | |
artifacts/bin | |
!artifacts/bin/**/*.ilk | |
!artifacts/bin/**/*.exp | |
!artifacts/bin/**/*.lib | |
build_quictrace: | |
name: Build QuicTrace | |
needs: [] | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
configuration: [Release, Debug] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee | |
with: | |
dotnet-version: 6.0.x | |
- name: Build | |
run: dotnet build src\plugins\QuicTrace.sln -c ${{ matrix.configuration }} | |
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a | |
with: | |
name: bin_quictrace_${{ matrix.configuration }} | |
path: artifacts/bin/quictrace/${{ matrix.configuration }} | |
# Package the plugin | |
- name: Install plugintool | |
run: dotnet tool install --global Microsoft.Performance.Toolkit.Plugins.Cli --version 0.1.25-preview | |
- name: Package | |
shell: pwsh | |
run: | | |
$sourceDir = "src\plugins\trace\dll\bin\${{ matrix.configuration }}\netstandard2.1" | |
$manifestPath = "$sourceDir/pluginManifest.json" | |
$manifest = Get-Content -Path $manifestPath | ConvertFrom-Json | |
$pluginId = $manifest.identity.id | |
$pluginVersion = $manifest.identity.version | |
$packageName = "$pluginId-$pluginVersion.ptix" | |
Write-Host "Creating $packageName" | |
& plugintool pack -s $sourceDir -o "artifacts/bin/quictrace/$packageName" | |
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a | |
with: | |
name: ptix_quictrace_${{ matrix.configuration }} | |
path: artifacts/bin/quictrace/*.ptix |