Skip to content

Commit

Permalink
Install a Mesa openGL implementation to run the unit tests on the bui…
Browse files Browse the repository at this point in the history
…ld agent
  • Loading branch information
codereader committed Mar 12, 2022
1 parent e1844f0 commit 5431263
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -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

Expand Down

0 comments on commit 5431263

Please sign in to comment.