From 85a6a0740524d089e5653b235db76ad27a75d9a2 Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Wed, 18 Oct 2023 14:23:51 -0400 Subject: [PATCH] windows --- .github/workflows/ci-tests.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a476511..512af35 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -11,7 +11,7 @@ jobs: strategy: # Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. # Consider changing this to true when your workflow is stable. - fail-fast: true + fail-fast: false # [Debug, Release, RelWithDebInfo] # [g++, clang++, cl] @@ -34,15 +34,33 @@ jobs: - uses: actions/checkout@v3 - name: Install Google Test (Linux) - if: matrix.os != 'windows-latest' + if: matrix.os == 'ubuntu-latest' run: | sudo apt-get install libgtest-dev - - name: Install Google Test (Windows) - if: matrix.os == 'windows-latest' + - name: Install Google Test (Windows MSVC) + if: matrix.os == 'windows-latest' && matrix.cpp_compiler == 'cl' run: | - choco install gtest + git clone https://github.com/google/googletest.git + mkdir googletest/build + cd googletest/build + cmake .. + dir + dir * + find . + make install + - name: Install Google Test (Windows Cygwin) + if: matrix.os == 'windows-latest' && matrix.cpp_compiler != 'cl' + run: | + git clone https://github.com/google/googletest.git + mkdir googletest/build + cd googletest/build + cmake .. + dir + dir * + find . + make install # Configure CMake in a 'build' subdirectory. # `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.