Skip to content

Commit 2effdbf

Browse files
committed
Add VS18 workflows
1 parent ca9561f commit 2effdbf

4 files changed

Lines changed: 132 additions & 0 deletions

File tree

.github/workflows/vs18-arm-ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: VS18-ARM-CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
8+
runs-on: windows-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- {gen: Visual Studio 18 2026, arch: ARM64, cfg: Release}
14+
- {gen: Visual Studio 18 2026, arch: ARM64, cfg: Debug}
15+
steps:
16+
- name: checkout
17+
uses: actions/checkout@v6
18+
- name: configure
19+
run: |
20+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DCMAKE_CROSSCOMPILING=1 -DFASTFLOAT_TEST=ON
21+
- name: build
22+
run: |
23+
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
24+
# disabled because it requires a toolchain
25+
#- name: test
26+
# run: |
27+
# cd build &&
28+
# ctest --output-on-failure -C ${{matrix.cfg}}

.github/workflows/vs18-ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: VS18-CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
8+
runs-on: windows-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Release}
14+
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Debug}
15+
- {gen: Visual Studio 18 2026, arch: x64, cfg: Release}
16+
- {gen: Visual Studio 18 2026, arch: x64, cfg: Debug}
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v6
20+
- name: configure
21+
run: |
22+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination
23+
- name: build
24+
run: |
25+
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
26+
- name: test
27+
run: |
28+
cd build &&
29+
ctest --output-on-failure -C ${{matrix.cfg}}
30+
- name: install
31+
run: |
32+
cd build &&
33+
cmake --install .
34+
- name: test install (find)
35+
run: |
36+
cd tests/installation_tests/find &&
37+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination &&
38+
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
39+
- name: test install (issue 72)
40+
run: |
41+
cd tests/installation_tests/issue72_installation &&
42+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination &&
43+
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: VS18-CLANG-CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
8+
runs-on: windows-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Release}
14+
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Debug}
15+
- {gen: Visual Studio 18 2026, arch: x64, cfg: Release}
16+
- {gen: Visual Studio 18 2026, arch: x64, cfg: Debug}
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v6
20+
- name: Configure
21+
run: |
22+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -T ClangCL -DFASTFLOAT_TEST=ON
23+
- name: Build
24+
run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose
25+
- name: Run basic tests
26+
run: |
27+
cd build
28+
ctest -C ${{matrix.cfg}} --output-on-failure -R basictest

.github/workflows/vs18-cxx23.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: VS18-CI C++23
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
8+
runs-on: windows-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Release}
14+
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Debug}
15+
- {gen: Visual Studio 18 2026, arch: x64, cfg: Release}
16+
- {gen: Visual Studio 18 2026, arch: x64, cfg: Debug}
17+
steps:
18+
- name: checkout
19+
uses: actions/checkout@v6
20+
- name: configure
21+
run: >-
22+
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}}
23+
-DFASTFLOAT_CXX_STANDARD=23
24+
-DFASTFLOAT_TEST=ON
25+
-DFASTFLOAT_CONSTEXPR_TESTS=ON
26+
-DCMAKE_INSTALL_PREFIX:PATH=destination
27+
- name: build
28+
run: |
29+
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
30+
- name: test
31+
run: |
32+
cd build &&
33+
ctest --output-on-failure -C ${{matrix.cfg}}

0 commit comments

Comments
 (0)