From 5431263433044537469be4dbe73d96f26cf2dde8 Mon Sep 17 00:00:00 2001 From: codereader Date: Sat, 12 Mar 2022 18:10:31 +0100 Subject: [PATCH] Install a Mesa openGL implementation to run the unit tests on the build agent --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 234641c7a5..c4c32cbbe8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,19 @@ jobs: working-directory: ${{env.GITHUB_WORKSPACE}} run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=x64 /maxcpucount:4 /nodeReuse:false /p:UseSharedConfiguration=false ${{env.SOLUTION_FILE_PATH}} + - name: Install Mesa openGL Drivers + working-directory: ${{env.GITHUB_WORKSPACE}} + env: + UNIT_TEST_MESA_DRIVER_URL: https://github.com/codereader/DarkRadiant_WinDeps/releases/download/2.14.0/unit_test_mesa_driver-x64-20.1.8.7z + run: | + Write-Host ("Downloading Mesa driver package from {0}..." -f $env:UNIT_TEST_MESA_DRIVER_URL) + $outFile = ".\install\unit_test_mesa_driver-x64.7z" + Invoke-WebRequest $env:UNIT_TEST_MESA_DRIVER_URL -OutFile $outFile + Write-Host ("Unpacking {0}..." -f $outFile) + & .\tools\7z\7za.exe x $outFile -o".\install\" + Get-ChildItem .\install\OpenGL32.dll + shell: powershell + - name: Setup VSTest.console.exe uses: darenm/Setup-VSTest@v1