Skip to content

Commit

Permalink
workflows added print version
Browse files Browse the repository at this point in the history
For compilers, linkers, ninja, and vcpkg.
  • Loading branch information
silverqx committed Aug 9, 2024
1 parent 62ed72c commit b6626a2
Show file tree
Hide file tree
Showing 12 changed files with 186 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
TINY_CLANG_TIDY_COMPLETED: false
TINY_VCPKG_NEEDS_UPGRADE: false

# For simpler updates and to avoid duplicates
TINY_COMPILER_COMMAND: clang++-18

# Clang Tidy can't be executed on Release builds, it's designed to be run on Debug builds only
strategy:
matrix:
Expand Down Expand Up @@ -139,14 +142,30 @@ jobs:
# the GITHUB_PATH like define two line above. 🫤
echo "CMAKE_PREFIX_PATH=/opt/Qt/${{ matrix.qt.version }}/gcc_64${CMAKE_PREFIX_PATH:+:}$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
- name: Compiler print version (${{ env.TINY_COMPILER_COMMAND }})
run: |
${{ env.TINY_COMPILER_COMMAND }} --version
- name: Linker print version (ld)
run: |
ld --version
- name: CMake print version
run: |
cmake --version
- name: Ninja print version
run: |
ninja --version
- name: vcpkg print version
run: |
vcpkg --version
- name: Clang Tidy print version
run: |
clang-tidy --version
- name: Clazy print version
run: |
clazy-standalone --version
Expand All @@ -164,7 +183,7 @@ jobs:
-B "$TinyORMBuildTree"
-G Ninja
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=ccache
-D CMAKE_CXX_COMPILER:FILEPATH=clang++-18
-D CMAKE_CXX_COMPILER:FILEPATH=${{ env.TINY_COMPILER_COMMAND }}
-D CMAKE_TOOLCHAIN_FILE:FILEPATH="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
-D CMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=ON
-D CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/clang-cl-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,30 @@ jobs:
'VCPKG_DEFAULT_TRIPLET=x64-windows' >> $env:GITHUB_ENV
'VCPKG_MAX_CONCURRENCY=2' >> $env:GITHUB_ENV
- name: Compiler print version (clang-cl.exe)
run: |
& ${env:LLVM_PATH}\bin\clang-cl.exe --version
- name: Compiler print version (cl.exe)
run: |
cl.exe
- name: Linker print version (link.exe)
run: |
link.exe | Select-Object -First 1
- name: CMake print version
run: |
cmake.exe --version
- name: Ninja print version
run: |
ninja.exe --version
- name: vcpkg print version
run: |
vcpkg.exe --version
- name: Ccache clear statistics
run: |
ccache.exe --zero-stats
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/linux-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,22 @@ jobs:
date +%Y-%m-%d > "$RUNNER_WORKSPACE/.vcpkg_upgraded_at"
- name: Compiler print version (${{ matrix.compiler.name }})
run: |
${{ matrix.compiler.command }} --version
- name: Linker print version (ld)
run: |
ld --version
- name: CMake print version
run: |
cmake --version
- name: Ninja print version
run: |
ninja --version
- name: vcpkg print version
run: |
vcpkg --version
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/linux-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,26 @@ jobs:
echo 'VCPKG_DEFAULT_TRIPLET=x64-linux-dynamic' >> $GITHUB_ENV
echo "VCPKG_MAX_CONCURRENCY=$TinyParallelVcpkg" >> $GITHUB_ENV
- name: Compiler print version (${{ matrix.compiler.name }})
run: |
${{ matrix.compiler.command }} --version
- name: Linker print version (ld)
run: |
ld --version
- name: CMake print version
run: |
cmake --version
- name: Ninja print version
run: |
ninja --version
- name: vcpkg print version
run: |
vcpkg --version
- name: Ccache clear statistics
run: |
ccache --zero-stats
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/msvc2022-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,22 @@ jobs:
Get-Date -Format 'yyyyMMdd' > "$env:RUNNER_WORKSPACE/.vcpkg_upgraded_at"
- name: Compiler print version (cl.exe)
run: |
cl.exe
- name: Linker print version (link.exe)
run: |
link.exe | Select-Object -First 1
- name: CMake print version
run: |
cmake.exe --version
- name: Ninja print version
run: |
ninja.exe --version
- name: vcpkg print version
run: |
vcpkg.exe --version
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/msvc2022-qt6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,26 @@ jobs:
'VCPKG_DEFAULT_TRIPLET=x64-windows' >> $env:GITHUB_ENV
"VCPKG_MAX_CONCURRENCY=$env:TinyParallel" >> $env:GITHUB_ENV
- name: Compiler print version (cl.exe)
run: |
cl.exe
- name: Linker print version (link.exe)
run: |
link.exe | Select-Object -First 1
- name: CMake print version
run: |
cmake.exe --version
- name: Ninja print version
run: |
ninja.exe --version
- name: vcpkg print version
run: |
vcpkg.exe --version
- name: Ccache clear statistics
run: |
ccache.exe --zero-stats
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/msys2-ucrt64-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,31 @@ jobs:
Get-Date -Format 'yyyyMMdd' > "$env:RUNNER_WORKSPACE/.vcpkg_upgraded_at"
- name: Compiler print version (${{ matrix.compiler.name }})
shell: msys2 {0}
run: |
${{ matrix.compiler.command }} --version
- name: Linker print version (ldd.exe)
shell: msys2 {0}
run: |
ldd.exe --version
- name: Linker print version (ld.exe - unused!)
shell: msys2 {0}
run: |
ld.exe --version
- name: CMake print version
shell: msys2 {0}
run: |
cmake.exe --version
- name: Ninja print version
shell: msys2 {0}
run: |
ninja.exe --version
- name: vcpkg print version
shell: msys2 {0}
run: |
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/msys2-ucrt64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,31 @@ jobs:
echo 'VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-dynamic' >> $GITHUB_ENV
echo "VCPKG_MAX_CONCURRENCY=$TinyParallelVcpkg" >> $GITHUB_ENV
- name: Compiler print version (${{ matrix.compiler.name }})
shell: msys2 {0}
run: |
${{ matrix.compiler.command }} --version
- name: Linker print version (ldd.exe)
shell: msys2 {0}
run: |
ldd.exe --version
- name: Linker print version (ld.exe - unused!)
shell: msys2 {0}
run: |
ld.exe --version
- name: CMake print version
shell: msys2 {0}
run: |
cmake.exe --version
- name: Ninja print version
shell: msys2 {0}
run: |
ninja.exe --version
- name: vcpkg print version
shell: msys2 {0}
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/vcpkg-linux-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,23 @@ jobs:
date +%Y-%m-%d > "$RUNNER_WORKSPACE/.vcpkg_upgraded_at"
# I'm not setting the CMAKE_CXX_COMPILER so query the /usr/bin/c++
- name: Compiler print version (c++)
run: |
c++ --version
- name: Linker print version (ld)
run: |
ld --version
- name: CMake print version
run: |
cmake --version
- name: Ninja print version
run: |
ninja --version
- name: vcpkg print version
run: |
vcpkg --version
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,23 @@ jobs:
date +%Y-%m-%d > "$RUNNER_WORKSPACE/.vcpkg_upgraded_at"
# I'm not setting the CMAKE_CXX_COMPILER so query the /usr/bin/c++
- name: Compiler print version (c++)
run: |
c++ --version
- name: Linker print version (ld)
run: |
ld --version
- name: CMake print version
run: |
cmake --version
- name: Ninja print version
run: |
ninja --version
- name: Print SQLite database version
run: |
sqlite3 --version
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/vcpkg-windows-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,22 @@ jobs:
Get-Date -Format 'yyyyMMdd' > "$env:RUNNER_WORKSPACE/.vcpkg_upgraded_at"
- name: Compiler print version (cl.exe)
run: |
cl.exe
- name: Linker print version (link.exe)
run: |
link.exe | Select-Object -First 1
- name: CMake print version
run: |
cmake.exe --version
- name: Ninja print version
run: |
ninja.exe --version
- name: vcpkg print version
run: |
vcpkg.exe --version
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,22 @@ jobs:
Get-Date -Format 'yyyyMMdd' > "$env:RUNNER_WORKSPACE/.vcpkg_upgraded_at"
- name: Compiler print version (cl.exe)
run: |
cl.exe
- name: Linker print version (link.exe)
run: |
link.exe | Select-Object -First 1
- name: CMake print version
run: |
cmake.exe --version
- name: Ninja print version
run: |
ninja.exe --version
- name: vcpkg print version
run: |
vcpkg.exe --version
Expand Down

0 comments on commit b6626a2

Please sign in to comment.