-
Notifications
You must be signed in to change notification settings - Fork 541
79 lines (75 loc) · 2.68 KB
/
plugins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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: Install Dependencies
run: dotnet tool install --global Microsoft.Performance.Toolkit.Plugins.Cli --version 0.1.25-preview
- 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 }}
- 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