From 0941b50423231efa84b1aa1c7b78feff050d5cac Mon Sep 17 00:00:00 2001 From: silverqx Date: Fri, 9 Aug 2024 23:25:26 +0200 Subject: [PATCH] workflows print .comment section (linker version) --- .github/workflows/analyzers.yml | 5 +++++ .github/workflows/clang-cl-qt6.yml | 6 ++++++ .github/workflows/linux-qt6-drivers.yml | 9 +++++++++ .github/workflows/linux-qt6.yml | 5 +++++ .github/workflows/msys2-ucrt64-drivers.yml | 10 ++++++++++ .github/workflows/msys2-ucrt64.yml | 5 +++++ .github/workflows/vcpkg-linux-drivers.yml | 20 ++++++++++++++++++++ .github/workflows/vcpkg-linux.yml | 20 ++++++++++++++++++++ 8 files changed, 80 insertions(+) diff --git a/.github/workflows/analyzers.yml b/.github/workflows/analyzers.yml index 1348781bd..83421a51f 100644 --- a/.github/workflows/analyzers.yml +++ b/.github/workflows/analyzers.yml @@ -210,6 +210,11 @@ jobs: run: | ccache --show-stats --verbose + - name: libTinyOrm print .comment section + working-directory: ${{ env.TinyORMBuildTree }} + run: | + readelf --string-dump .comment ./libTinyOrmd.so + - name: TinyORM execute clang-tidy 🔥 working-directory: ${{ env.TinyORMPath }} run: >- diff --git a/.github/workflows/clang-cl-qt6.yml b/.github/workflows/clang-cl-qt6.yml index 843cd2061..d2e26f9b9 100644 --- a/.github/workflows/clang-cl-qt6.yml +++ b/.github/workflows/clang-cl-qt6.yml @@ -749,6 +749,12 @@ jobs: run: | ccache.exe --show-stats --verbose + - name: TinyOrm print linker version + working-directory: ${{ env.TinyORMBuildTree }} + run: >- + objdump.exe --all-headers .\TinyOrm0d.dll | + Select-String -SimpleMatch 'LinkerVersion' + - name: TinyORM add on the $env:Path run: | $env:TinyORMBuildTree >> $env:GITHUB_PATH diff --git a/.github/workflows/linux-qt6-drivers.yml b/.github/workflows/linux-qt6-drivers.yml index 6bfae2e00..1f3516453 100644 --- a/.github/workflows/linux-qt6-drivers.yml +++ b/.github/workflows/linux-qt6-drivers.yml @@ -281,6 +281,15 @@ jobs: run: | ccache --show-stats --verbose + - name: libTinyOrm print .comment section + working-directory: ${{ env.TinyORMBuildTree }} + run: >- + [[ '${{ matrix.build-type.key }}' == 'debug' ]] && + tinyLibTinyOrm='libTinyOrmd.so' || + tinyLibTinyOrm='libTinyOrm.so' + + readelf --string-dump .comment "./$tinyLibTinyOrm" + - name: TinyORM add on the $LD_LIBRARY_PATH run: | echo "LD_LIBRARY_PATH=$TinyORMBuildTree${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" >> $env:GITHUB_ENV diff --git a/.github/workflows/linux-qt6.yml b/.github/workflows/linux-qt6.yml index e2eb35997..3a43d2a78 100644 --- a/.github/workflows/linux-qt6.yml +++ b/.github/workflows/linux-qt6.yml @@ -691,6 +691,11 @@ jobs: run: | ccache --show-stats --verbose + - name: libTinyOrm print .comment section + working-directory: ${{ env.TinyORMBuildTree }} + run: | + readelf --string-dump .comment ./libTinyOrmd.so + - name: TinyORM add on the $LD_LIBRARY_PATH run: | echo "LD_LIBRARY_PATH=$TinyORMBuildTree${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" >> $env:GITHUB_ENV diff --git a/.github/workflows/msys2-ucrt64-drivers.yml b/.github/workflows/msys2-ucrt64-drivers.yml index 0b03d7bea..e0a4ca0da 100644 --- a/.github/workflows/msys2-ucrt64-drivers.yml +++ b/.github/workflows/msys2-ucrt64-drivers.yml @@ -294,6 +294,16 @@ jobs: run: | ccache.exe --show-stats --verbose + - name: TinyOrm print linker version + shell: msys2 {0} + working-directory: ${{ env.TinyORMBuildTree }} + run: >- + [[ '${{ matrix.build-type.key }}' == 'debug' ]] && + tinyTinyOrm='TinyOrm0d.dll' || + tinyTinyOrm='TinyOrm0.dll' + + objdump.exe --all-headers "./$tinyTinyOrm" | grep --ignore-case 'LinkerVersion' + # Used migrate:fresh instead (is safer) - name: Create and Seed tables for unit tests 🎉 shell: msys2 {0} diff --git a/.github/workflows/msys2-ucrt64.yml b/.github/workflows/msys2-ucrt64.yml index 86710bb5d..e0033cac7 100644 --- a/.github/workflows/msys2-ucrt64.yml +++ b/.github/workflows/msys2-ucrt64.yml @@ -441,6 +441,11 @@ jobs: run: | ccache.exe --show-stats --verbose + - name: TinyOrm print linker version + working-directory: ${{ env.TinyORMBuildTree }} + run: | + objdump.exe --all-headers ./TinyOrm0d.dll | grep --ignore-case 'LinkerVersion' + - name: Create and Seed tables for unit tests 🎉 shell: msys2 {0} working-directory: ${{ env.TinyORMBuildTree }}/tests/testdata_tom diff --git a/.github/workflows/vcpkg-linux-drivers.yml b/.github/workflows/vcpkg-linux-drivers.yml index a1f4b0fee..1b80b1c8a 100644 --- a/.github/workflows/vcpkg-linux-drivers.yml +++ b/.github/workflows/vcpkg-linux-drivers.yml @@ -295,6 +295,11 @@ jobs: run: | cmake --build . --target all --parallel $TinyParallel + - name: HelloWorld-TinyDrivers print .comment section (${{ env.HelloWorldVcpkgManifestBuildName }}) + working-directory: ${{ env.HelloWorldVcpkgManifestBuildTree }} + run: | + readelf --string-dump .comment ./HelloWorld-TinyDrivers + - name: HelloWorld-TinyDrivers execute (MySQL) 🏁 working-directory: ${{ env.HelloWorldVcpkgManifestBuildTree }} run: | @@ -399,6 +404,15 @@ jobs: run: | ccache --show-stats --verbose + - name: libTinyOrm print .comment section (${{ env.HelloWorldManualBuildName }}) + working-directory: ${{ env.TinyORMManualBuildTree }} + run: >- + [[ '${{ matrix.build-type.key }}' == 'debug' ]] && + tinyLibTinyOrm='libTinyOrmd.so' || + tinyLibTinyOrm='libTinyOrm.so' + + readelf --string-dump .comment "./$tinyLibTinyOrm" + # Build and execute the HelloWorld-TinyDrivers console application - name: HelloWorld-TinyDrivers prepare Manual method (vcpkg.json) @@ -527,6 +541,12 @@ jobs: run: | ccache --show-stats --verbose + - name: HelloWorld-TinyDrivers print .comment section (${{ env.HelloWorldFetchContentBuildName }}) + working-directory: >- + ../HelloWorld-TinyDrivers-FetchContent-Install/${{ matrix.build-type.name }}/bin + run: | + readelf --string-dump .comment ./HelloWorld-TinyDrivers + - name: HelloWorld-TinyDrivers execute (MySQL) 🏁 working-directory: >- ../HelloWorld-TinyDrivers-FetchContent-Install/${{ matrix.build-type.name }}/bin diff --git a/.github/workflows/vcpkg-linux.yml b/.github/workflows/vcpkg-linux.yml index 6e9acb159..935d87476 100644 --- a/.github/workflows/vcpkg-linux.yml +++ b/.github/workflows/vcpkg-linux.yml @@ -267,6 +267,11 @@ jobs: run: | cmake --build . --target all --parallel $TINY_PARALLEL + - name: HelloWorld print .comment section (${{ env.HelloWorldVcpkgManifestBuildName }}) + working-directory: ${{ env.HelloWorldVcpkgManifestBuildTree }} + run: | + readelf --string-dump .comment ./HelloWorld + - name: HelloWorld execute (SQLite) 🏁 working-directory: ${{ env.HelloWorldVcpkgManifestBuildTree }} run: | @@ -360,6 +365,15 @@ jobs: run: | ccache --show-stats --verbose + - name: libTinyOrm print .comment section (${{ env.HelloWorldManualBuildName }}) + working-directory: ${{ env.TinyORMManualBuildTree }} + run: >- + [[ '${{ matrix.build-type.key }}' == 'debug' ]] && + tinyLibTinyOrm='libTinyOrmd.so' || + tinyLibTinyOrm='libTinyOrm.so' + + readelf --string-dump .comment "./$tinyLibTinyOrm" + # Build and execute the HelloWorld console application - name: HelloWorld prepare Manual method (vcpkg.json) @@ -478,6 +492,12 @@ jobs: run: | ccache --show-stats --verbose + - name: HelloWorld print .comment section (${{ env.HelloWorldFetchContentBuildName }}) + working-directory: >- + ../HelloWorld-FetchContent-Install/${{ matrix.build-type.name }}/bin + run: | + readelf --string-dump .comment ./HelloWorld + - name: HelloWorld execute (SQLite) 🏁 working-directory: >- ../HelloWorld-FetchContent-Install/${{ matrix.build-type.name }}/bin