Skip to content

Commit 436277f

Browse files
committed
.github: split test prep into own step to only run it for ubuntu
1 parent 21d2e84 commit 436277f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ jobs:
4242
cd build
4343
cmake ${{ matrix.cmake_options }} ${{ matrix.macos_cmake_options }} ..
4444
cmake --build .
45+
- name: Prepare Test
46+
if: ${{ matrix.os == 'ubuntu-latest' }} # only ubuntu does crosscompile with MinGW toolchain
47+
run: |
48+
cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll build/test/
4549
- name: Test
4650
run: |
4751
cd build
48-
cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll test/ || true # used only for MinGW tests, ok to fail for other cases
4952
ctest --output-on-failure
5053
fuzzing_build:
5154
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)