From 3a8940fa8fa8a10c1ca2ae9ca59b3e47480de3bb Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 2 Nov 2024 12:34:26 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b83eda2..37a79c7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,12 +139,16 @@ jobs: run: | cd build cmake --build . --parallel --config ${{ matrix.config.BUILD_TYPE }} - - - name: Tests + + - name: Copy DLLs to ctest build directory shell: pwsh run: | - $DLL_PATH = Join-Path -Path (Get-Location) -ChildPath "build/Release" - $env:Path += ';' + $env:DLL_PATH - echo "Path=$env:Path" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - ctest -VV -C ${{ matrix.config.BUILD_TYPE }} --test-dir build/tests --no-tests=error + $dllSourcePath = "build/${{ matrix.config.BUILD_TYPE }}" + $dllDestPath = "build/tests" + Copy-Item -Path "$dllSourcePath\*.dll" -Destination $dllDestPath -Force + + - name: Tests + shell: pwsh + run: | + ctest -VV -C ${{ matrix.config.BUILD_TYPE }} --test-dir build/tests --no-tests=error --build-config Release