-
Notifications
You must be signed in to change notification settings - Fork 537
64 lines (60 loc) · 1.66 KB
/
netperf.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
name: Netperf
on:
workflow_dispatch:
push:
branches:
- main
paths:
- .github/workflows/netperf.yml
- .gitmodules
- scripts/secnetperf.ps1
- scripts/secnetperf-helpers.psm1
- scripts/quic_callback.ps1
- scripts/prepare-machine.ps1
- scripts/xdp.json
- src/bin/**
- src/core/**
- src/platform/**
- src/perf/**
- submodules/openssl/**
- submodules/openssl3/**
- submodules/xdp-for-windows/**
pull_request:
branches:
- main
paths:
- .github/workflows/netperf.yml
- .gitmodules
- scripts/secnetperf.ps1
- scripts/secnetperf-helpers.psm1
- scripts/quic_callback.ps1
- scripts/prepare-machine.ps1
- scripts/xdp.json
- src/bin/**
- src/core/**
- src/platform/**
- src/perf/**
- submodules/openssl/**
- submodules/openssl3/**
- submodules/xdp-for-windows/**
concurrency:
# Cancel any workflow currently in progress for the same PR.
# Allow running concurrently with any other commits.
group: perf-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions: read-all
jobs:
run:
name: Run Perf
runs-on: windows-latest
steps:
- name: Run NetPerf Workflow
timeout-minutes: 120
shell: pwsh
run: |
$url = "https://raw.githubusercontent.com/microsoft/netperf/main/run-workflow.ps1"
if ('${{ secrets.NET_PERF_TRIGGER }}' -eq '') {
Write-Host "Not able to run because no secrets are available!"
return
}
iex "& { $(irm $url) } ${{ secrets.NET_PERF_TRIGGER }} quic ${{ github.sha }} ${{ github.ref }} ${{ github.event.pull_request.number }}"