Skip to content

Commit

Permalink
workflows print .comment section (linker version)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 9, 2024
1 parent de48ee0 commit 73476b2
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/clang-cl-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,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
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/linux-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/linux-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/msys2-ucrt64-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/msys2-ucrt64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/vcpkg-linux-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,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: |
Expand Down Expand Up @@ -397,6 +402,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)
Expand Down Expand Up @@ -525,6 +539,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
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,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: |
Expand Down Expand Up @@ -358,6 +363,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)
Expand Down Expand Up @@ -476,6 +490,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
Expand Down

0 comments on commit 73476b2

Please sign in to comment.