diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 4c6b378..c32fb22 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -23,7 +23,7 @@ jobs: - name: Configure run: cmake -Bbuild -S. -G Ninja -DCMAKE_BUILD_TYPE=Release -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON - name: Build - run: cmake --build build + run: cmake --build build --parallel - name: Test run: ctest --test-dir build --parallel cmake-macos-x86_64: @@ -32,9 +32,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -Bbuild -S. -G Xcode -DCMAKE_CONFIGURATION_TYPES=Release -DHAVE_STD_REGEX=TRUE -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON -DCMAKE_OSX_ARCHITECTURES=x86_64 + run: cmake -Bbuild -S. -G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_CONFIGURATION_TYPES=Release -DHAVE_STD_REGEX=TRUE -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON - name: Build - run: cmake --build build --config Release --parallel $(sysctl -n hw.ncpu) -- -quiet + run: cmake --build build --config Release --parallel -- -quiet - name: Test run: ctest --test-dir build --parallel cmake-macos-arm64: @@ -43,8 +43,30 @@ jobs: steps: - uses: actions/checkout@v4 - name: Configure - run: cmake -Bbuild -S. -G Xcode -DCMAKE_CONFIGURATION_TYPES=Release -DHAVE_STD_REGEX=TRUE -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON -DCMAKE_OSX_ARCHITECTURES=arm64 + run: cmake -Bbuild -S. -G Xcode -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_CONFIGURATION_TYPES=Release -DHAVE_STD_REGEX=TRUE -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON - name: Build - run: cmake --build build --config Release --parallel $(sysctl -n hw.ncpu) -- -quiet + run: cmake --build build --config Release --parallel -- -quiet + - name: Test + run: ctest --test-dir build --parallel + cmake-windows-x86: + runs-on: windows-2019 + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - name: Configure + run: cmake -Bbuild -S. -G "Visual Studio 16 2019" -A Win32 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON + - name: Build + run: cmake --build build --parallel --config Release + - name: Test + run: ctest --test-dir build --parallel + cmake-windows-x64: + runs-on: windows-2019 + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - name: Configure + run: cmake -Bbuild -S. -G "Visual Studio 16 2019" -A x64 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON + - name: Build + run: cmake --build build --parallel --config Release - name: Test run: ctest --test-dir build --parallel diff --git a/cmake/DownloadGoogleTest.cmake b/cmake/DownloadGoogleTest.cmake index 5d2dc37..6fa7079 100644 --- a/cmake/DownloadGoogleTest.cmake +++ b/cmake/DownloadGoogleTest.cmake @@ -4,8 +4,8 @@ PROJECT(googletest-download NONE) INCLUDE(ExternalProject) ExternalProject_Add(googletest - URL https://github.com/google/googletest/archive/release-1.8.0.zip - URL_HASH SHA256=f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf + URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip + URL_HASH SHA256=1f357c27ca988c3f7c6b4bf68a9395005ac6761f034046e9dde0896e3aba00e4 SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" BINARY_DIR "${CMAKE_BINARY_DIR}/googletest" CONFIGURE_COMMAND ""