Skip to content

Commit 4ead609

Browse files
committed
Use CC variable while build
1 parent 06156db commit 4ead609

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ stages:
4646
script:
4747
- *setup_cpp
4848
- echo -e "\e[0Ksection_start:`date +%s`:my_build[collapsed=true]\r\e[0KHeader of the build collapsible section"
49-
- cmake --workflow --preset clang-debug
49+
- cmake --workflow --preset $CC-debug
5050
- gcovr .
51-
- cmake --workflow --preset clang-release
51+
- cmake --workflow --preset $CC-release
5252
- echo -e "\e[0Ksection_end:`date +%s`:my_build\r\e[0K"
5353

5454
default: # Add a default section to define the `image` keyword's default value
@@ -60,6 +60,7 @@ test_linux_llvm:
6060
stage: build
6161
variables:
6262
compiler: llvm
63+
CC: clang
6364
extends:
6465
- .standard-rules # Reuse the configuration in `.standard-rules` here
6566
- .build
@@ -68,6 +69,7 @@ test_linux_gcc:
6869
stage: build
6970
variables:
7071
compiler: gcc
72+
CC: gcc
7173
extends:
7274
- .standard-rules # Reuse the configuration in `.standard-rules` here
7375
- .build

0 commit comments

Comments
 (0)