diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6894d3ef..d107bbb9 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -35,7 +35,7 @@ jobs: - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBENCHMARK=ON + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBENCHMARK=ON - name: Build # Build your program with the given configuration diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 2e915d33..8b851ba1 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -39,7 +39,11 @@ jobs: - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -DTEST=ON -B ${{github.workspace}}/build + run: | + if [ "${{ matrix.os }}" != "windows-latest" ]; then + cmake -DTEST=ON -Dgtest_disable_pthreads=ON -B ${{github.workspace}}/build + else + cmake -DTEST=ON -B ${{github.workspace}}/build - name: Build # Build your program with the given configuration