Skip to content

Commit 95a2d22

Browse files
committed
ci: printing of the toolchain versions added
1 parent 2287904 commit 95a2d22

File tree

7 files changed

+113
-62
lines changed

7 files changed

+113
-62
lines changed

.github/workflows/ci-clang-tidy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ jobs:
141141
run: |
142142
conan profile detect --force
143143
conan profile show -pr default
144+
- name: Print tool versions
145+
shell: bash
146+
run: |
147+
${CXX} --version
148+
clang-tidy-${{ matrix.toolchain.compiler.version }} --version
149+
cmake --version 2>&1 || true
150+
ninja --version 2>&1 || true
151+
conan --version
152+
python3 --version
144153
- name: Run clang-tidy
145154
shell: bash
146155
run: |

.github/workflows/ci-conan.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ jobs:
163163
run: |
164164
conan profile detect --force
165165
conan profile show -pr default
166+
- name: Print tool versions
167+
shell: bash
168+
run: |
169+
${CXX} --version 2>&1 || true
170+
cmake --version 2>&1 || true
171+
ninja --version 2>&1 || true
172+
conan --version
173+
python3 --version
166174
- name: Create Conan package
167175
if: matrix.toolchain.compiler.type != 'MSVC'
168176
shell: bash

.github/workflows/ci-formatting.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
run: |
4545
python -m pip install --upgrade pip
4646
pip install -r requirements.txt
47+
- name: Print tool versions
48+
shell: bash
49+
run: |
50+
python3 --version
51+
pre-commit --version
4752
- name: Check
4853
run: |
4954
pre-commit run --all-files

.github/workflows/ci-freestanding.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ jobs:
156156
run: |
157157
conan profile detect --force
158158
conan profile show -pr default
159+
- name: Print tool versions
160+
shell: bash
161+
run: |
162+
${CXX} --version
163+
cmake --version 2>&1 || true
164+
ninja --version 2>&1 || true
165+
conan --version
166+
python3 --version
159167
- name: Build freestanding
160168
shell: bash
161169
run: |

.github/workflows/ci-sonarqube-cloud.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ on:
3030
paths-ignore:
3131
- "docs/**"
3232

33-
3433
concurrency:
3534
group: ${{ github.workflow }}-${{ github.ref }}
3635
cancel-in-progress: true
@@ -43,7 +42,7 @@ jobs:
4342
fail-fast: false
4443
# Note that SonarQube Cloud can only analyze one variant. Nevertheless, for consistency with other CI jobs, we keep the matrix.
4544
matrix:
46-
config:
45+
config:
4746
- os: ubuntu-24.04
4847
compiler:
4948
type: CLANG
@@ -53,10 +52,10 @@ jobs:
5352
lib: libc++
5453
cxx_modules: "True"
5554
conan_config: ""
56-
std: [23]
57-
formatting: [std::format]
58-
contracts: [gsl-lite]
59-
build_type: [Release]
55+
std: [23]
56+
formatting: [std::format]
57+
contracts: [gsl-lite]
58+
build_type: [Release]
6059

6160
env:
6261
BUILD_WRAPPER_OUT_DIR: build_wrapper_output
@@ -134,6 +133,15 @@ jobs:
134133
sed -i.backup '/^\[settings\]$/,/^\[/ s/^compiler.cppstd=.*/compiler.cppstd=${{ matrix.std }}/' ~/.conan2/profiles/default
135134
sed -i.backup '/^\[settings\]$/,/^\[/ s/^build_type=.*/build_type=${{ matrix.build_type }}/' ~/.conan2/profiles/default
136135
conan profile show -pr default
136+
- name: Print tool versions
137+
shell: bash
138+
run: |
139+
${CXX} --version
140+
cmake --version 2>&1 || true
141+
ninja --version 2>&1 || true
142+
conan --version
143+
gcovr --version
144+
python3 --version
137145
- name: Set 'std_format' and 'import_std' environment variables
138146
shell: bash
139147
run: |

.github/workflows/ci-test-package-cmake.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ jobs:
169169
conan remote add artifactory https://mpusz.jfrog.io/artifactory/api/conan/conan-oss
170170
echo 'tools.cmake.cmake_layout:build_folder_vars=["settings.compiler", "settings.compiler.version", "settings.compiler.cppstd"]' >> ~/.conan2/global.conf
171171
conan profile show -pr default
172+
- name: Print tool versions
173+
shell: bash
174+
run: |
175+
${CXX} --version 2>&1 || true
176+
cmake --version 2>&1 || true
177+
ninja --version 2>&1 || true
178+
conan --version
179+
python3 --version
172180
- name: Install Conan dependencies
173181
shell: bash
174182
run: |
@@ -187,15 +195,13 @@ jobs:
187195
run: |
188196
call ..\build\${{ matrix.conan-build-folder }}\generators\conanbuild.bat
189197
call ..\build\${{ matrix.conan-build-folder }}\generators\conanvcvars.bat
190-
cmake --version
191198
cmake --preset conan-${{ matrix.conan-build-folder }} -DCMAKE_INSTALL_PREFIX=../out
192199
- name: Configure mp-units CMake
193200
if: matrix.toolchain.compiler.type != 'MSVC'
194201
shell: bash
195202
working-directory: src
196203
run: |
197204
source ../build/${{ matrix.conan-build-folder }}/generators/conanbuild.sh
198-
cmake --version
199205
cmake --preset conan-${{ matrix.conan-build-folder }} -DCMAKE_INSTALL_PREFIX=../out
200206
- name: Install mp-units
201207
if: matrix.toolchain.compiler.type == 'MSVC'

.github/workflows/codeql.yml

Lines changed: 61 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "master" ]
16+
branches: ["master"]
1717
paths-ignore:
1818
- "docs/**"
1919
pull_request:
2020
# The branches below must be a subset of the branches above
21-
branches: [ "master" ]
21+
branches: ["master"]
2222
paths-ignore:
2323
- "docs/**"
2424

@@ -51,67 +51,74 @@ jobs:
5151
strategy:
5252
fail-fast: false
5353
matrix:
54-
language: [ 'cpp', 'python' ]
54+
language: ["cpp", "python"]
5555
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
5656
# Use only 'java' to analyze code written in Java, Kotlin or both
5757
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
5858
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
5959

6060
steps:
61-
- name: Checkout repository
62-
uses: actions/checkout@v4
61+
- name: Checkout repository
62+
uses: actions/checkout@v4
6363

64-
# Initializes the CodeQL tools for scanning.
65-
- name: Initialize CodeQL
66-
uses: github/codeql-action/init@v3
67-
with:
68-
languages: ${{ matrix.language }}
69-
# If you wish to specify custom queries, you can do so here or in a config file.
70-
# By default, queries listed here will override any specified in a config file.
71-
# Prefix the list here with "+" to use these queries and those in the config file.
64+
# Initializes the CodeQL tools for scanning.
65+
- name: Initialize CodeQL
66+
uses: github/codeql-action/init@v3
67+
with:
68+
languages: ${{ matrix.language }}
69+
# If you wish to specify custom queries, you can do so here or in a config file.
70+
# By default, queries listed here will override any specified in a config file.
71+
# Prefix the list here with "+" to use these queries and those in the config file.
7272

73-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
74-
# queries: security-extended,security-and-quality
73+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
74+
# queries: security-extended,security-and-quality
7575

76+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
77+
# If this step fails, then you should remove it and run the build manually (see below)
78+
- name: Autobuild
79+
if: matrix.language != 'cpp'
80+
uses: github/codeql-action/autobuild@v3
7681

77-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
78-
# If this step fails, then you should remove it and run the build manually (see below)
79-
- name: Autobuild
80-
if: matrix.language != 'cpp'
81-
uses: github/codeql-action/autobuild@v3
82+
# ℹ️ Command-line programs to run using the OS shell.
83+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
8284

83-
# ℹ️ Command-line programs to run using the OS shell.
84-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
85+
- run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV
86+
- name: Cache Conan data
87+
if: matrix.language == 'cpp'
88+
uses: actions/cache@v4
89+
env:
90+
cache-name: cache-conan-data
91+
with:
92+
path: ~/.conan2/p
93+
key: build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-$COMPILER_VERSION-$STDLIB-${{ env.cache_id }}
94+
restore-keys: |
95+
build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-$COMPILER_VERSION-$STDLIB-
96+
build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-
97+
build-${{ matrix.os }}-$BUILD_TYPE-
98+
build-${{ matrix.os }}-
99+
- name: Set up Python
100+
if: matrix.language == 'cpp'
101+
uses: actions/setup-python@v5
102+
with:
103+
python-version: 3.x
104+
- name: Print tool versions
105+
if: matrix.language == 'cpp'
106+
shell: bash
107+
run: |
108+
${CXX} --version
109+
cmake --version 2>&1 || true
110+
python3 --version
111+
- name: Conan build
112+
if: matrix.language == 'cpp'
113+
run: |
114+
pip install -U conan
115+
conan --version
116+
conan profile detect --force
117+
conan remote add artifactory https://mpusz.jfrog.io/artifactory/api/conan/conan-oss
118+
mkdir _lgtm_build_dir && cd _lgtm_build_dir
119+
conan build .. -s compiler.cppstd=20 -c user.mp-units.build:all=True -o '&:std_format=False' -b missing
85120
86-
- run: echo "cache_id=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_ENV
87-
- name: Cache Conan data
88-
if: matrix.language == 'cpp'
89-
uses: actions/cache@v4
90-
env:
91-
cache-name: cache-conan-data
92-
with:
93-
path: ~/.conan2/p
94-
key: build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-$COMPILER_VERSION-$STDLIB-${{ env.cache_id }}
95-
restore-keys: |
96-
build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-$COMPILER_VERSION-$STDLIB-
97-
build-${{ matrix.os }}-$BUILD_TYPE-$COMPILER_TYPE-
98-
build-${{ matrix.os }}-$BUILD_TYPE-
99-
build-${{ matrix.os }}-
100-
- name: Set up Python
101-
if: matrix.language == 'cpp'
102-
uses: actions/setup-python@v5
103-
with:
104-
python-version: 3.x
105-
- name: Conan build
106-
if: matrix.language == 'cpp'
107-
run: |
108-
pip install -U conan
109-
conan profile detect --force
110-
conan remote add artifactory https://mpusz.jfrog.io/artifactory/api/conan/conan-oss
111-
mkdir _lgtm_build_dir && cd _lgtm_build_dir
112-
conan build .. -s compiler.cppstd=20 -c user.mp-units.build:all=True -o '&:std_format=False' -b missing
113-
114-
- name: Perform CodeQL Analysis
115-
uses: github/codeql-action/analyze@v3
116-
with:
117-
category: "/language:${{matrix.language}}"
121+
- name: Perform CodeQL Analysis
122+
uses: github/codeql-action/analyze@v3
123+
with:
124+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)