mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-05-01 03:19:21 +08:00
Add VS18 workflows
This commit is contained in:
parent
ca9561fde9
commit
2effdbf888
28
.github/workflows/vs18-arm-ci.yml
vendored
Normal file
28
.github/workflows/vs18-arm-ci.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: VS18-ARM-CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- {gen: Visual Studio 18 2026, arch: ARM64, cfg: Release}
|
||||
- {gen: Visual Studio 18 2026, arch: ARM64, cfg: Debug}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: configure
|
||||
run: |
|
||||
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DCMAKE_CROSSCOMPILING=1 -DFASTFLOAT_TEST=ON
|
||||
- name: build
|
||||
run: |
|
||||
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
|
||||
# disabled because it requires a toolchain
|
||||
#- name: test
|
||||
# run: |
|
||||
# cd build &&
|
||||
# ctest --output-on-failure -C ${{matrix.cfg}}
|
||||
43
.github/workflows/vs18-ci.yml
vendored
Normal file
43
.github/workflows/vs18-ci.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: VS18-CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Release}
|
||||
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Debug}
|
||||
- {gen: Visual Studio 18 2026, arch: x64, cfg: Release}
|
||||
- {gen: Visual Studio 18 2026, arch: x64, cfg: Debug}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: configure
|
||||
run: |
|
||||
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -DFASTFLOAT_TEST=ON -DCMAKE_INSTALL_PREFIX:PATH=destination
|
||||
- name: build
|
||||
run: |
|
||||
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
|
||||
- name: test
|
||||
run: |
|
||||
cd build &&
|
||||
ctest --output-on-failure -C ${{matrix.cfg}}
|
||||
- name: install
|
||||
run: |
|
||||
cd build &&
|
||||
cmake --install .
|
||||
- name: test install (find)
|
||||
run: |
|
||||
cd tests/installation_tests/find &&
|
||||
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination &&
|
||||
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
|
||||
- name: test install (issue 72)
|
||||
run: |
|
||||
cd tests/installation_tests/issue72_installation &&
|
||||
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination &&
|
||||
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
|
||||
28
.github/workflows/vs18-clang-ci.yml
vendored
Normal file
28
.github/workflows/vs18-clang-ci.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: VS18-CLANG-CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Release}
|
||||
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Debug}
|
||||
- {gen: Visual Studio 18 2026, arch: x64, cfg: Release}
|
||||
- {gen: Visual Studio 18 2026, arch: x64, cfg: Debug}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}} -DFASTFLOAT_BENCHMARKS=ON -T ClangCL -DFASTFLOAT_TEST=ON
|
||||
- name: Build
|
||||
run: cmake --build build --config ${{matrix.cfg}} --parallel --verbose
|
||||
- name: Run basic tests
|
||||
run: |
|
||||
cd build
|
||||
ctest -C ${{matrix.cfg}} --output-on-failure -R basictest
|
||||
33
.github/workflows/vs18-cxx23.yml
vendored
Normal file
33
.github/workflows/vs18-cxx23.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: VS18-CI C++23
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: vs18/${{matrix.arch}}/${{matrix.cfg}}
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Release}
|
||||
- {gen: Visual Studio 18 2026, arch: Win32, cfg: Debug}
|
||||
- {gen: Visual Studio 18 2026, arch: x64, cfg: Release}
|
||||
- {gen: Visual Studio 18 2026, arch: x64, cfg: Debug}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v6
|
||||
- name: configure
|
||||
run: >-
|
||||
cmake -S . -B build -G "${{matrix.gen}}" -A ${{matrix.arch}}
|
||||
-DFASTFLOAT_CXX_STANDARD=23
|
||||
-DFASTFLOAT_TEST=ON
|
||||
-DFASTFLOAT_CONSTEXPR_TESTS=ON
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=destination
|
||||
- name: build
|
||||
run: |
|
||||
cmake --build build --verbose --config ${{matrix.cfg}} --parallel
|
||||
- name: test
|
||||
run: |
|
||||
cd build &&
|
||||
ctest --output-on-failure -C ${{matrix.cfg}}
|
||||
Loading…
x
Reference in New Issue
Block a user