Skip to content

Commit

Permalink
Add GitHub Actions CI for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Maratyszcza committed May 28, 2024
1 parent 9b81155 commit a17bf43
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 -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:
Expand All @@ -43,8 +43,39 @@ 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 -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
cmake-windows-arm64:
runs-on: windows-2019
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -Bbuild -S. -G "Visual Studio 16 2019" -A ARM64 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON
- name: Build
run: cmake --build build --parallel --config Release
4 changes: 2 additions & 2 deletions cmake/DownloadGoogleTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit a17bf43

Please sign in to comment.