-
Notifications
You must be signed in to change notification settings - Fork 0
147 lines (135 loc) · 4.45 KB
/
ci.yml
File metadata and controls
147 lines (135 loc) · 4.45 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# SPDX-License-Identifier: MIT
name: CI
permissions:
id-token: write
on:
pull_request:
push:
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
components: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v5
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
iris:
- '.github/workflows/**/*.yml'
- '.github/actions/**/*.yml'
- 'CMakeLists.txt'
- 'include/iris/**/*'
- 'test/CMakeLists.txt'
- 'test/**/*'
build:
name: "[${{ matrix.cpp_version.name }}] ${{ matrix.compiler.name }} ${{ matrix.compiler.version }} (${{ matrix.build_type.name }})"
needs: changes
if: ${{ needs.changes.outputs.components != '[]' && needs.changes.outputs.components != '' }}
strategy:
fail-fast: false
matrix:
os:
- name: ubuntu
version: 24.04
- name: windows
version: 2022
- name: windows
version: 2025-vs2026
build_type:
- name: Debug
lowercase: debug
- name: Release
lowercase: release
cpp_version:
- name: C++23
number: 23
- name: C++26
number: 26
compiler:
- name: GCC
toolset: gcc
version: 14
executable: g++-14
cxxflags: -fdiagnostics-color=always
- name: Clang
toolset: clang
version: 21
executable: clang++-21
cxxflags: -stdlib=libc++ -fcolor-diagnostics
- name: MSVC
toolset: msvc
version: 2022
toolset_version: 14.44
vs-path: C:\Program Files\Microsoft Visual Studio\2022\Enterprise
cmake_config_additional_args: -G "Visual Studio 17 2022"
builder_additional_args: -- "-consoleLoggerParameters:ForceConsoleColor"
executable: cl
- name: MSVC
toolset: msvc
version: 2026
toolset_version: 14.50
vs-path: C:\Program Files\Microsoft Visual Studio\18\Enterprise
cmake_config_additional_args: -G "Visual Studio 18 2026"
builder_additional_args: -- "-consoleLoggerParameters:ForceConsoleColor"
executable: cl
exclude:
- os:
name: windows
version: 2022
compiler:
version: 2026
- os:
name: windows
version: 2025-vs2026
compiler:
version: 2022
- os:
name: windows
compiler:
name: GCC
- os:
name: windows
compiler:
name: Clang
- os:
name: ubuntu
compiler:
name: MSVC
uses: ./.github/workflows/build.yml
with:
os-name: ${{ matrix.os.name }}
os-version: ${{ matrix.os.version }}
build-type-name: ${{ matrix.build_type.name }}
cpp-version-name: ${{ matrix.cpp_version.name }}
cpp-version-number: ${{ matrix.cpp_version.number }}
compiler-toolset: ${{ matrix.compiler.toolset }}
compiler-version: ${{ matrix.compiler.version }}
compiler-executable: ${{ matrix.compiler.executable }}
compiler-cxxflags: ${{ matrix.compiler.cxxflags }}
compiler-toolset-version: ${{ matrix.compiler.toolset_version }}
vs-path: ${{ matrix.compiler.vs-path }}
cmake-config-additional-args: ${{ matrix.compiler.cmake_config_additional_args }}
compiler-builder-additional-args: ${{ matrix.compiler.builder_additional_args }}
components: ${{ needs.changes.outputs.components }}
run-notifier:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: iris-cpp/[email protected]
with:
IGNORE_NO_MARKER: true
RUN_ID: ${{ github.run_id }}
JOB_ID: ${{ job.check_run_id }}
WORKER_URL: https://cpp-warning-notifier.iris-cpp.org
STEP_REGEX: Build .+
JOB_REGEX: '\[C\+\+(?<cppVersion>\d+)\] (?<vendorName>.+) (?<vendorVersion>.+) \((?<config>.+)\) / (?<component>.+)'
ROW_HEADERS: '["component", "vendorName", "vendorVersion", "config"]'
COLUMN_HEADER: cppVersion