Skip to content

Commit

Permalink
workflows added Qt print version
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 9, 2024
1 parent b6626a2 commit eaea0af
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ jobs:
run: |
clazy-standalone --version
- name: Qt print version
run: |
qmake -query QT_VERSION
- name: Ccache clear statistics
run: |
ccache --zero-stats
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/clang-cl-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,10 @@ jobs:
run: |
vcpkg.exe --version
- name: Qt print version
run: |
qmake.exe -query QT_VERSION
- name: Ccache clear statistics
run: |
ccache.exe --zero-stats
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/linux-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@ jobs:
date +%Y-%m-%d > "$RUNNER_WORKSPACE/.vcpkg_upgraded_at"
- name: Qt v${{ env.TINY_QT_VERSION }} prepare environment
run: |
echo "/opt/Qt/$TINY_QT_VERSION/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/opt/Qt/$TINY_QT_VERSION/$TinyQtSpecPlain/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" >> $GITHUB_ENV
# The CMAKE_PREFIX_PATH must be defined on the GitHub Actions, this is some kind of a bug
# because the CMake can't find the Qt, but if I export the PATH directly in the step
# it works but doesn't work using the GITHUB_PATH like define two line above. 🫤
echo "CMAKE_PREFIX_PATH=/opt/Qt/$TINY_QT_VERSION/$TinyQtSpecPlain${CMAKE_PREFIX_PATH:+:}$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
- name: Compiler print version (${{ matrix.compiler.name }})
run: |
${{ matrix.compiler.command }} --version
Expand All @@ -225,15 +235,9 @@ jobs:
run: |
vcpkg --version
- name: Qt v${{ env.TINY_QT_VERSION }} prepare environment
- name: Qt print version
run: |
echo "/opt/Qt/$TINY_QT_VERSION/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/opt/Qt/$TINY_QT_VERSION/$TinyQtSpecPlain/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" >> $GITHUB_ENV
# The CMAKE_PREFIX_PATH must be defined on the GitHub Actions, this is some kind of a bug
# because the CMake can't find the Qt, but if I export the PATH directly in the step
# it works but doesn't work using the GITHUB_PATH like define two line above. 🫤
echo "CMAKE_PREFIX_PATH=/opt/Qt/$TINY_QT_VERSION/$TinyQtSpecPlain${CMAKE_PREFIX_PATH:+:}$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
qmake -query QT_VERSION
- name: Ccache clear statistics
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linux-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,10 @@ jobs:
run: |
vcpkg --version
- name: Qt print version
run: |
qmake -query QT_VERSION
- name: Ccache clear statistics
run: |
ccache --zero-stats
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/msvc2022-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ jobs:
run: |
vcpkg.exe --version
- name: Qt print version
run: |
qmake.exe -query QT_VERSION
- name: Ccache clear statistics
run: |
ccache.exe --zero-stats
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/msvc2022-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,10 @@ jobs:
run: |
vcpkg.exe --version
- name: Qt print version
run: |
qmake.exe -query QT_VERSION
- name: Ccache clear statistics
run: |
ccache.exe --zero-stats
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/msys2-ucrt64-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ jobs:
run: |
"$VCPKG_INSTALLATION_ROOT/vcpkg.exe" --version
- name: Qt print version
shell: msys2 {0}
run: |
qmake.exe -query QT_VERSION
- name: Ccache clear statistics
shell: msys2 {0}
run: |
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 @@ -394,6 +394,11 @@ jobs:
run: |
"$VCPKG_INSTALLATION_ROOT/vcpkg.exe" --version
- name: Qt print version
shell: msys2 {0}
run: |
qmake.exe -query QT_VERSION
- name: Ccache clear statistics
shell: msys2 {0}
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/vcpkg-linux-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ jobs:
run: |
vcpkg --version
- name: Qt print version
run: |
qmake -query QT_VERSION
# Will be used in the classic method (vcpkg install tinyorm) and VcpkgManifest method
# I will not write bash scripts for this, would be a pain 🫤
- name: vcpkg prepare TinyORM ports (update REF and SHA512)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ jobs:
run: |
vcpkg --version
- name: Qt print version
run: |
qmake -query QT_VERSION
# Will be used in the classic method (vcpkg install tinyorm) and VcpkgManifest method
# I will not write bash scripts for this, would be a pain 🫤
- name: vcpkg prepare TinyORM ports (update REF and SHA512)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/vcpkg-windows-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ jobs:
run: |
vcpkg.exe --version
- name: Qt print version
run: |
qmake.exe -query QT_VERSION
# Will be used in the classic method (vcpkg install tinyorm) and VcpkgManifest method
- name: vcpkg prepare TinyORM ports (update REF and SHA512)
working-directory: ${{ env.TinyORMPath }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ jobs:
run: |
vcpkg.exe --version
- name: Qt print version
run: |
qmake.exe -query QT_VERSION
# Will be used in the classic method (vcpkg install tinyorm) and VcpkgManifest method
- name: vcpkg prepare TinyORM ports (update REF and SHA512)
working-directory: ${{ env.TinyORMPath }}
Expand Down

0 comments on commit eaea0af

Please sign in to comment.