-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (88 loc) · 2.84 KB
/
ci.yml
File metadata and controls
102 lines (88 loc) · 2.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-24.04
build_type: Debug
compiler: g++-14
- os: ubuntu-24.04
build_type: Release
compiler: g++-14
- os: ubuntu-24.04
build_type: Debug
compiler: clang++-18
- os: ubuntu-24.04
build_type: Release
compiler: clang++-18
- os: windows-2025-vs2026
build_type: Debug
generator: Visual Studio 18 2026
arch: Win32
- os: windows-2025-vs2026
build_type: Release
generator: Visual Studio 18 2026
arch: Win32
- os: windows-2025-vs2026
build_type: Debug
generator: Visual Studio 18 2026
arch: x64
- os: windows-2025-vs2026
build_type: Release
generator: Visual Studio 18 2026
arch: x64
- os: windows-2025-vs2026
build_type: Debug
generator: MinGW Makefiles
- os: windows-2025-vs2026
build_type: Release
generator: MinGW Makefiles
steps:
- uses: actions/checkout@v6
- name: configure-ubuntu
if: ${{ contains(matrix.os, 'ubuntu') }}
run: >
cmake
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-B ${{ github.workspace }}/build
-S ${{ github.workspace }}
- name: configure-vs
if: ${{ contains(matrix.generator, 'Visual Studio') }}
run: >
cmake
-G "${{ matrix.generator }}"
-A ${{ matrix.arch }}
-B ${{ github.workspace }}/build
-S ${{ github.workspace }}
- name: configure-mingw
if: ${{ contains(matrix.generator, 'MinGW') }}
run: >
cmake
-G "${{ matrix.generator }}"
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-B ${{ github.workspace }}/build
-S ${{ github.workspace }}
- name: build
run: >
cmake
--build ${{ github.workspace }}/build
--config ${{ matrix.build_type }}
- name: test-ubuntu
if: ${{ contains(matrix.os, 'ubuntu') }}
working-directory: ${{ github.workspace }}/build
run: ./vt-ndarray-test
- name: test-vs
if: ${{ contains(matrix.generator, 'Visual Studio') }}
shell: cmd
working-directory: ${{ github.workspace }}/build/${{ matrix.build_type }}
run: vt-ndarray-test.exe
- name: test-mingw
if: ${{ contains(matrix.generator, 'MinGW') }}
shell: cmd
working-directory: ${{ github.workspace }}/build
run: vt-ndarray-test.exe