-
Notifications
You must be signed in to change notification settings - Fork 301
48 lines (45 loc) · 1.33 KB
/
cxx-versions.yml
File metadata and controls
48 lines (45 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: C++ compatibility build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-unix:
name: 'Unix C++${{ matrix.cxx-version }}'
runs-on: ubuntu-latest
strategy:
matrix:
cxx-version: [14, 17, 20]
steps:
- uses: actions/checkout@v6
- name: Setup
run: cmake -B build/ -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{matrix.cxx-version}}
- name: Build
run: cmake --build build/
- name: Test
run: ./build/test/test_xsimd
build-msvc:
name: 'MSVC C++${{ matrix.cxx-version }}'
defaults:
run:
shell: bash {0}
runs-on: windows-2022
strategy:
matrix:
cxx-version: [14, 17, 20]
steps:
- name: Setup compiler
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Setup Ninja
run: |
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install ninja
- uses: actions/checkout@v6
- name: Setup
run: cmake -B build/ -DBUILD_TESTS=ON -DDOWNLOAD_DOCTEST=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{matrix.cxx-version}} -G Ninja
- name: Build
run: cmake --build build/
- name: Test
run: ./build/test/test_xsimd