Skip to content

Commit e0b9667

Browse files
committed
Test C++ version in MSVC
1 parent 5bc08c3 commit e0b9667

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/cxx-versions.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,46 @@ on: [push, pull_request]
33
concurrency:
44
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
55
cancel-in-progress: true
6+
67
jobs:
7-
build:
8+
build-unix:
9+
name: 'Unix C++${{ matrix.cxx-version }}'
810
runs-on: ubuntu-latest
911
strategy:
1012
matrix:
1113
cxx-version: [14, 17, 20]
1214
steps:
1315
- uses: actions/checkout@v6
1416
- name: Setup
15-
run: cmake -B _build -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{matrix.cxx-version}}
17+
run: cmake -B build/ -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{matrix.cxx-version}}
18+
- name: Build
19+
run: cmake --build build/
20+
- name: Test
21+
run: ./build/test/test_xsimd
22+
23+
build-msvc:
24+
name: 'MSVC C++${{ matrix.cxx-version }}'
25+
defaults:
26+
run:
27+
shell: bash {0}
28+
runs-on: windows-2022
29+
strategy:
30+
matrix:
31+
cxx-version: [14, 17, 20]
32+
steps:
33+
- name: Setup compiler
34+
uses: ilammy/msvc-dev-cmd@v1
35+
with:
36+
arch: amd64
37+
- name: Setup Ninja
38+
run: |
39+
python3 -m pip install --upgrade pip setuptools wheel
40+
python3 -m pip install ninja
41+
- uses: actions/checkout@v6
42+
- name: Setup
43+
run: cmake -B build/ -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{matrix.cxx-version}} -G Ninja
1644
- name: Build
17-
run: cmake --build _build
45+
run: cmake --build build/
46+
- name: Test
47+
run: ./build/test/test_xsimd
1848

0 commit comments

Comments
 (0)