Skip to content

Commit d6af915

Browse files
committed
.github/workflows/test.yml: print version information in a separate stage
To increase readability and catch incorrect linking issues early in the run. Signed-off-by: Eugene Syromiatnikov <[email protected]>
1 parent 0406774 commit d6af915

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,15 @@ jobs:
7373
- name: "Config perftools build"
7474
working-directory: "./perftools/source"
7575
run: |
76-
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" ${{ matrix.release.cmakeopts }}
76+
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" -Drun_add_version_dep=OFF ${{ matrix.release.cmakeopts }}
7777
- name: "Build perftools"
7878
working-directory: "./perftools/source"
7979
run: |
8080
cmake --build build --config Release
81+
- name: "Print perftools version information"
82+
working-directory: "./perftools/source"
83+
run: |
84+
cmake --build build --config Release --target run-version -j 4
8185
- name: "Run perftools"
8286
working-directory: "./perftools/source"
8387
run: |
@@ -153,11 +157,15 @@ jobs:
153157
- name: "Config perftools build"
154158
working-directory: "./perftools/source"
155159
run: |
156-
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" ${{ matrix.release.cmakeopts }}
160+
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" -Drun_add_version_dep=OFF ${{ matrix.release.cmakeopts }}
157161
- name: "Build perftools"
158162
working-directory: "./perftools/source"
159163
run: |
160164
cmake --build build --config Release
165+
- name: "Print perftools version information"
166+
working-directory: "./perftools/source"
167+
run: |
168+
cmake --build build --config Release --target run-version -j 4
161169
- name: "Run perftools"
162170
working-directory: "./perftools/source"
163171
run: |
@@ -254,7 +262,7 @@ jobs:
254262
shutdown_vm: false
255263
run: |
256264
cd perftools/source
257-
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" ${{ matrix.release.cmakeopts }}
265+
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" -Drun_add_version_dep=OFF ${{ matrix.release.cmakeopts }}
258266
- name: "Build perftools"
259267
uses: "cross-platform-actions/action@fe0167d8082ac584754ef3ffb567fded22642c7d" #v0.27.0
260268
with:
@@ -264,6 +272,15 @@ jobs:
264272
run: |
265273
cd perftools/source
266274
cmake --build build --config Release
275+
- name: "Print perftools version information"
276+
uses: "cross-platform-actions/action@fe0167d8082ac584754ef3ffb567fded22642c7d" #v0.27.0
277+
with:
278+
operating_system: "freebsd"
279+
version: "13.4"
280+
shutdown_vm: false
281+
run: |
282+
cd perftools/source
283+
cmake --build build --config Release --target run-version -j 4
267284
- name: "Run perftools"
268285
uses: "cross-platform-actions/action@fe0167d8082ac584754ef3ffb567fded22642c7d" #v0.27.0
269286
with:
@@ -341,11 +358,15 @@ jobs:
341358
- name: "Config perftools build"
342359
working-directory: ".\\perftools\\source"
343360
run: |
344-
cmake -S . -B .\build -DOPENSSL_ROOT_DIR="$env:GITHUB_WORKSPACE\openssl" ${{ matrix.release.cmakeopts }}
361+
cmake -S . -B .\build -DOPENSSL_ROOT_DIR="$env:GITHUB_WORKSPACE\openssl" -Drun_add_version_dep=OFF ${{ matrix.release.cmakeopts }}
345362
- name: "Build perftools"
346363
working-directory: ".\\perftools\\source"
347364
run: |
348365
cmake --build .\build --config Release
366+
- name: "Print perftools version information"
367+
working-directory: ".\\perftools\\source"
368+
run: |
369+
cmake --build .\build --config Release --target run-version -j 4
349370
- name: "Run perftools"
350371
working-directory: ".\\perftools\\source"
351372
run: |
@@ -414,11 +435,15 @@ jobs:
414435
- name: "Config perftools build"
415436
working-directory: "./perftools/source"
416437
run: |
417-
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" ${{ matrix.release.cmakeopts }}
438+
cmake -S . -B build -DOPENSSL_ROOT_DIR="$GITHUB_WORKSPACE/openssl" -Drun_add_version_dep=OFF ${{ matrix.release.cmakeopts }}
418439
- name: "Build perftools"
419440
working-directory: "./perftools/source"
420441
run: |
421442
cmake --build build --config Release
443+
- name: "Print perftools version information"
444+
working-directory: "./perftools/source"
445+
run: |
446+
cmake --build build --config Release --target run-version -j 4
422447
- name: "Run perftools"
423448
working-directory: "./perftools/source"
424449
run: |

0 commit comments

Comments
 (0)