diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce8788e3..eed1d061 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,8 +30,7 @@ jobs: - run: cmake -B build -S . -DBUILD_EXAMPLES=ON ${{ matrix.cmake-args }} - run: cmake --build build --config RelWithDebInfo --parallel $(nproc) - - run: ctest -C RelWithDebInfo --output-on-failure - working-directory: build + - run: ctest --test-dir build -C RelWithDebInfo --output-on-failure - run: cmake --install build --config RelWithDebInfo --prefix pkg - uses: actions/upload-artifact@v4 diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index b494c5b0..f1e49912 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -41,5 +41,4 @@ jobs: - run: cmake -B build -S . ${{ matrix.cmake-flags }} -DBUILD_EXAMPLES=ON - run: cmake --build build --target all --config RelWithDebInfo --parallel $(nproc) - - run: ${{ matrix.ctest-env }} ctest -C RelWithDebInfo --output-on-failure - working-directory: build + - run: ${{ matrix.ctest-env }} ctest --test-dir build -C RelWithDebInfo --output-on-failure diff --git a/README.md b/README.md index a61aa32f..70350cf8 100644 --- a/README.md +++ b/README.md @@ -168,9 +168,7 @@ cmake -B build -S . cmake --build build # Test -cd build -ctest -cd .. +ctest --test-dir build --output-on-failure # Install cmake --install build --prefix pkgdir