Add dep for building xdp prog #5320
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: Test Down Level | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
pull_request: | |
branches: | |
- main | |
- release/* | |
concurrency: | |
# Cancel any workflow currently in progress for the same PR. | |
# Allow running concurrently with any other commits. | |
group: testdownlevel-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
permissions: read-all | |
jobs: | |
test-down-level: | |
strategy: | |
fail-fast: false | |
matrix: | |
vec: [ | |
# v2.1 | |
{ release: "2.1.11", os: "ubuntu-20.04", arch: "x64", tls: "openssl" }, | |
{ release: "2.1.11", os: "windows-2022", arch: "x64", tls: "schannel" }, | |
{ release: "2.1.11", os: "windows-2022", arch: "x64", tls: "openssl" }, | |
# v2.2 | |
{ release: "2.2.6", os: "ubuntu-20.04", arch: "x64", tls: "openssl" }, | |
{ release: "2.2.6", os: "ubuntu-22.04", arch: "x64", tls: "openssl3" }, | |
{ release: "2.2.6", os: "windows-2022", arch: "x64", tls: "schannel" }, | |
{ release: "2.2.6", os: "windows-2022", arch: "x64", tls: "openssl" }, | |
{ release: "2.2.6", os: "windows-2022", arch: "x64", tls: "openssl3" }, | |
# v2.3 | |
{ release: "2.3.4", os: "ubuntu-20.04", arch: "x64", tls: "openssl" }, | |
{ release: "2.3.4", os: "ubuntu-22.04", arch: "x64", tls: "openssl3" }, | |
{ release: "2.3.4", os: "windows-2022", arch: "x64", tls: "schannel" }, | |
{ release: "2.3.4", os: "windows-2022", arch: "x64", tls: "openssl" }, | |
{ release: "2.3.4", os: "windows-2022", arch: "x64", tls: "openssl3" }, | |
] | |
runs-on: ${{ matrix.vec.os }} | |
name: Test | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Install Perl | |
if: runner.os == 'Windows' | |
uses: shogo82148/actions-setup-perl@28eae78d12c2bba1163aec45d123f6d9228bc307 | |
with: | |
perl-version: '5.34' | |
- name: Install NASM | |
if: runner.os == 'Windows' | |
uses: ilammy/setup-nasm@13cbeb366c45c4379d3478cdcbadd8295feb5028 | |
- name: Prepare Machine | |
run: scripts/prepare-machine.ps1 -Tls ${{ matrix.vec.tls }} -DisableTest | |
shell: pwsh | |
- name: Build Release | |
shell: pwsh | |
run: scripts/build.ps1 -Config Release -Arch ${{ matrix.vec.arch }} -Tls ${{ matrix.vec.tls }} -UseSystemOpenSSLCrypto -DisableTest -DisableTools -DisablePerf | |
- name: Download Tests | |
shell: pwsh | |
run: | | |
$osName = "${{runner.os}}".ToLower() | |
Invoke-WebRequest -Uri "https://github.com/microsoft/msquic/releases/download/v${{matrix.vec.release}}/msquic_${{runner.os}}_${{matrix.vec.arch}}_Release_${{matrix.vec.tls}}_test.zip" -OutFile "artifacts/test.zip" | |
Expand-Archive -Path artifacts/test.zip -DestinationPath artifacts/bin/$osName/${{matrix.vec.arch}}_Release_${{matrix.vec.tls}} | |
- name: Run Tests (Linux) | |
if: runner.os == 'Linux' | |
shell: pwsh | |
run: | | |
chmod +x artifacts/bin/linux/${{matrix.vec.arch}}_Release_${{matrix.vec.tls}}/msquictest | |
$env:LD_LIBRARY_PATH = Join-Path (Get-Location).Path "artifacts/bin/linux/${{matrix.vec.arch}}_Release_${{matrix.vec.tls}}" | |
scripts/test.ps1 -AZP -Config Release -Arch ${{ matrix.vec.arch }} -Tls ${{ matrix.vec.tls }} -SkipUnitTests -Filter -*CredValidation*:*ConnectClientCertificate*:Basic.StartTwoListenersSameALPN:ParameterValidation.ValidateGlobalParam | |
- name: Run Tests (Windows) | |
if: runner.os == 'Windows' | |
run: scripts/test.ps1 -AZP -Config Release -Arch ${{ matrix.vec.arch }} -Tls ${{ matrix.vec.tls }} -SkipUnitTests -Filter -*ValidateConfiguration:*ValidAlpnLengths:*ResumeRejection*:*ConnectClientCertificate*:Basic.StartTwoListenersSameALPN:ParameterValidation.ValidateGlobalParam |