From 5b6800116ab98429217b2ed22ed74bc76a880f73 Mon Sep 17 00:00:00 2001 From: Saran Tunyasuvunakool Date: Fri, 7 Jun 2024 07:57:34 -0700 Subject: [PATCH] Workaround for https://github.com/actions/runner-images/issues/10004. PiperOrigin-RevId: 641250258 Change-Id: I00509dc21c568a05d6cba346437194a7e80badd4 --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76e861e6..874039dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -154,6 +154,16 @@ jobs: - name: Build MuJoCo working-directory: build run: cmake --build . --config=Release ${{ matrix.cmake_build_args }} + - name: Copy in the correct VC runtime DLLs (workaround for actions/runner-images#10004) + if: ${{ runner.os == 'Windows' }} + working-directory: build + shell: powershell + run: | + Copy-Item (Join-Path ` + ((Get-ChildItem -Directory ` + -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\14.*" | + Sort -Descending | Select-Object -First 1).FullName + ) 'x64\Microsoft.VC143.CRT\*.dll') "bin\Release" - name: Test MuJoCo working-directory: build run: ctest -C Release --output-on-failure .