Skip to content

Commit dba65f2

Browse files
committed
Add GitHub Actions CI for Windows
1 parent 9b81155 commit dba65f2

2 files changed

Lines changed: 38 additions & 7 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Configure
2424
run: cmake -Bbuild -S. -G Ninja -DCMAKE_BUILD_TYPE=Release -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON
2525
- name: Build
26-
run: cmake --build build
26+
run: cmake --build build --parallel
2727
- name: Test
2828
run: ctest --test-dir build --parallel
2929
cmake-macos-x86_64:
@@ -32,9 +32,9 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434
- name: Configure
35-
run: cmake -Bbuild -S. -G Xcode -DCMAKE_CONFIGURATION_TYPES=Release -DHAVE_STD_REGEX=TRUE -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON -DCMAKE_OSX_ARCHITECTURES=x86_64
35+
run: cmake -Bbuild -S. -G Xcode -DCMAKE_OSX_ARCHITECTURES=x86_64 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON
3636
- name: Build
37-
run: cmake --build build --config Release --parallel $(sysctl -n hw.ncpu) -- -quiet
37+
run: cmake --build build --config Release --parallel -- -quiet
3838
- name: Test
3939
run: ctest --test-dir build --parallel
4040
cmake-macos-arm64:
@@ -43,8 +43,39 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v4
4545
- name: Configure
46-
run: cmake -Bbuild -S. -G Xcode -DCMAKE_CONFIGURATION_TYPES=Release -DHAVE_STD_REGEX=TRUE -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON -DCMAKE_OSX_ARCHITECTURES=arm64
46+
run: cmake -Bbuild -S. -G Xcode -DCMAKE_OSX_ARCHITECTURES=arm64 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON
4747
- name: Build
48-
run: cmake --build build --config Release --parallel $(sysctl -n hw.ncpu) -- -quiet
48+
run: cmake --build build --config Release --parallel -- -quiet
4949
- name: Test
5050
run: ctest --test-dir build --parallel
51+
cmake-windows-x86:
52+
runs-on: windows-2019
53+
timeout-minutes: 15
54+
steps:
55+
- uses: actions/checkout@v4
56+
- name: Configure
57+
run: cmake -Bbuild -S. -G "Visual Studio 16 2019" -A Win32 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON
58+
- name: Build
59+
run: cmake --build build --config Release --parallel
60+
- name: Test
61+
run: ctest --test-dir build --parallel
62+
cmake-windows-x64:
63+
runs-on: windows-2019
64+
timeout-minutes: 15
65+
steps:
66+
- uses: actions/checkout@v4
67+
- name: Configure
68+
run: cmake -Bbuild -S. -G "Visual Studio 16 2019" -A x64 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON
69+
- name: Build
70+
run: cmake --build build --config Release --parallel
71+
- name: Test
72+
run: ctest --test-dir build --parallel
73+
cmake-windows-arm64:
74+
runs-on: windows-2019
75+
timeout-minutes: 15
76+
steps:
77+
- uses: actions/checkout@v4
78+
- name: Configure
79+
run: cmake -Bbuild -S. -G "Visual Studio 16 2019" -A ARM64 -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON
80+
- name: Build
81+
run: cmake --build build --config Release --parallel

cmake/DownloadGoogleTest.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ PROJECT(googletest-download NONE)
44

55
INCLUDE(ExternalProject)
66
ExternalProject_Add(googletest
7-
URL https://github.com/google/googletest/archive/release-1.8.0.zip
8-
URL_HASH SHA256=f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf
7+
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
8+
URL_HASH SHA256=1f357c27ca988c3f7c6b4bf68a9395005ac6761f034046e9dde0896e3aba00e4
99
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source"
1010
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest"
1111
CONFIGURE_COMMAND ""

0 commit comments

Comments
 (0)