Skip to content

Commit 374d5fc

Browse files
committed
Add CI build for "import std" on MSVC
1 parent 6f43b6b commit 374d5fc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ jobs:
147147
- { std: 14 }
148148
- { std: 17 }
149149
- { std: 20 }
150-
name: "Windows C++${{matrix.config.std}}"
150+
- { std: 20, import_std: "import std" }
151+
- { std: 23 }
152+
- { std: 23, import_std: "import std" }
153+
154+
name: "Windows C++${{matrix.config.std}} ${{matrix.config.import_std}}"
151155
steps:
152156
- uses: actions/checkout@v4
153157

@@ -157,6 +161,11 @@ jobs:
157161
- name: "setup"
158162
shell: bash
159163
run: |
164+
EXTRA_FLAGS=""
165+
if [ -n "${{matrix.config.import_std}}" ]
166+
then
167+
EXTRA_FLAGS="${EXTRA_FLAGS} -DSTRONG_TYPE_IMPORT_STD_LIBRARY"
168+
fi
160169
cmake \
161170
-S . \
162171
-B build \
@@ -167,6 +176,7 @@ jobs:
167176
-DCMAKE_BUILD_TYPE=Debug \
168177
-DCMAKE_VERBOSE_MAKEFILE=yes \
169178
-DSTRONG_TYPE_UNIT_TEST=yes \
179+
${EXTRA_FLAGS} \
170180
-G Ninja
171181
172182
- name: "build"

0 commit comments

Comments
 (0)