Skip to content

Commit 5c99a11

Browse files
authored
Merge pull request #223 from eseiler/fix/header
[INFRA] Do not use TDL in header tests
2 parents 518c1bb + 2276ab0 commit 5c99a11

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/ci_misc.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,27 @@ jobs:
4949
build_type: Release
5050
test_threads: 1 # snippets create and delete files and some separate tests create/delete the same files
5151

52+
- name: "Header clang17 cpp23"
53+
compiler: "clang-17"
54+
build: header
55+
build_type: Release
56+
cxx_flags: "-stdlib=libc++ -std=c++23"
57+
test_threads: 2
58+
5259
- name: "Header clang17"
5360
compiler: "clang-17"
5461
build: header
5562
build_type: Release
5663
cxx_flags: "-stdlib=libc++"
5764
test_threads: 2
5865

66+
- name: "Header gcc13 cpp23"
67+
compiler: "gcc-13"
68+
build: header
69+
build_type: Debug
70+
cxx_flags: "-std=c++23"
71+
test_threads: 2
72+
5973
- name: "Header gcc13"
6074
compiler: "gcc-13"
6175
build: header
@@ -93,10 +107,12 @@ jobs:
93107
cd sharg-build
94108
cmake ../sharg/test/${{ matrix.build }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
95109
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}" \
96-
-DSHARG_VERBOSE_TESTS=OFF
110+
-DSHARG_VERBOSE_TESTS=OFF \
111+
${{ contains(matrix.name, 'Header') && '-DSHARG_NO_TDL=ON' || '' }}
112+
97113
case "${{ matrix.build }}" in
98114
snippet) make -j2 gtest_build yaml-cpp;;
99-
header) make -j2 gtest_build gbenchmark_build yaml-cpp;;
115+
header) make -j2 gtest_build gbenchmark_build;;
100116
esac
101117
102118
- name: Build tests

include/sharg/validators.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212

1313
#pragma once
1414

15+
#include <algorithm>
1516
#include <any>
1617
#include <concepts>
18+
#include <exception>
1719
#include <fstream>
1820
#include <ranges>
1921
#include <regex>

0 commit comments

Comments
 (0)