Skip to content

Commit

Permalink
workflows testing Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jun 7, 2024
1 parent 5b69fea commit cfd1e0d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 22 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
-S .
-B '${{ env.TinyORMBuildTree }}'
-G Ninja
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=/usr/local/bin/ccache
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=ccache
-D CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-18
-D CMAKE_TOOLCHAIN_FILE:FILEPATH="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
-D CMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=ON
Expand Down Expand Up @@ -226,18 +226,18 @@ jobs:
run: >-
echo 'TINY_CLANG_TIDY_COMPLETED=true' >> $GITHUB_ENV
run-clang-tidy-18
run-clang-tidy
-extra-arg-before='-Qunused-arguments'
-p='${{ env.TinyORMBuildTree }}'
-j ${{ env.TinyParallel }}
'[\\\/]+(?:drivers|examples|orm|src|tests|tom)[\\\/]+.+?[\\\/]+(?!mocs_)[\w\d_\-\+]+\.cpp$'
- name: Clazy-standalone prepare
# Run the clazy if the clang-tidy was executed and was success or failed
if: env.TINY_CLANG_TIDY_COMPLETED == 'true' && (success() || failure())
working-directory: ${{ env.TinyORMPath }}
run: |
chmod +x ./tools/run-clazy-standalone.py
# - name: Clazy-standalone prepare
# # Run the clazy if the clang-tidy was executed and was success or failed
# if: env.TINY_CLANG_TIDY_COMPLETED == 'true' && (success() || failure())
# working-directory: ${{ env.TinyORMPath }}
# run: |
# chmod +x ./tools/run-clazy-standalone.py

# Disabled checks
# Level 2 - qstring-allocations
Expand All @@ -264,7 +264,7 @@ jobs:
`# Checks Excluded from level2`\
'no-qstring-allocations'
./tools/run-clazy-standalone.py \
python3 ./tools/run-clazy-standalone.py \
-checks="$checks" \
-extra-arg-before='-Qunused-arguments' \
-header-filter='[\\\/]+(drivers|examples|orm|tests|tom)[\\\/]+.+\.(h|hpp)$' \
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/linux-qt6-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
- key: clang18
command: clang++-18

- key: gcc13
command: g++-13
- key: gcc14
command: g++-14

include:
- lto: ON
Expand All @@ -68,8 +68,8 @@ jobs:
key: release
name: Release
compiler:
key: gcc13
command: g++-13
key: gcc14
command: g++-14

steps:
- uses: actions/checkout@v4
Expand All @@ -87,13 +87,13 @@ jobs:
# gh workflow run --ref silverqx-develop
# --
# The description below is Outdated but I leave the comment.
# For gcc13 with the parallel 4 I saw 15.1GB maximum memory usage from 15.6GB and that is
# For gcc14 with the parallel 4 I saw 15.1GB maximum memory usage from 15.6GB and that is
# very close to the edge, so I have to decrease it to 3.
# For clang18 it was ~11.6 from 15.6GB so parallel 8 is ok.
# I must divide all parallel by 2 because I have 2 self-hosted runners on the same computer
# and also -1 for reserve to avoid swapping, so for clang: 8 / 2 - 1 = 3 and for gcc:
# 3 / 2 - 1 = 1.
parallel=${{ matrix.compiler.key == 'gcc13' && '3' || '8' }}
parallel=${{ matrix.compiler.key == 'gcc14' && '3' || '8' }}
echo "TinyParallel=$parallel" >> $GITHUB_ENV
tinyormPath=$(realpath ./main)
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
-S .
-B '${{ env.TinyORMBuildTree }}'
-G Ninja
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=/usr/local/bin/ccache
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=ccache
-D CMAKE_CXX_COMPILER:FILEPATH='/usr/bin/${{ matrix.compiler.command }}'
-D CMAKE_TOOLCHAIN_FILE:FILEPATH="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
-D CMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=ON
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
# the reason for this is to always have the latest tom_testdata and to avoid manual rebuilds if
# any shared library is updated on which the tom_testdata depends to avoid crashes.
- name: Install tom_testdata for vcpkg-linux-drivers.yml
if: matrix.compiler.key == 'gcc13' && matrix.drivers-type == 'Static' && matrix.build-type.key == 'release'
if: matrix.compiler.key == 'gcc14' && matrix.drivers-type == 'Static' && matrix.build-type.key == 'release'
working-directory: ${{ env.TinyORMBuildTree }}/tests/testdata_tom
run: |
cp --force --target-directory="$(realpath ~/bin)" ./tom_testdata
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/vcpkg-linux-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ jobs:
- name: vcpkg install libmysql (classic mode)
if: matrix.build-type.key == 'debug'
run: |
vcpkg install libmysql
# Temp. GCC14 workaround
CFLAGS="-Wno-implicit-function-declaration -Wno-int-conversion" vcpkg install libmysql
# vcpkg install libmysql
- name: vcpkg install ${{ matrix.qt.vcpkg-qt }} (classic mode)
if: matrix.build-type.key == 'debug'
Expand Down Expand Up @@ -340,7 +342,7 @@ jobs:
-S .
-B '${{ runner.workspace }}/TinyORM-builds-cmake/build-TinyDrivers-manual-gcc-${{ matrix.build-type.key }}'
-G Ninja
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=/usr/local/bin/ccache
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=ccache
-D CMAKE_TOOLCHAIN_FILE:FILEPATH="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
-D CMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=OFF
-D CMAKE_BUILD_TYPE:STRING=${{ matrix.build-type.name }}
Expand Down Expand Up @@ -455,7 +457,7 @@ jobs:
-S .
-B '${{ runner.workspace }}/HelloWorld-builds-cmake/build-TinyDrivers-fetchcontent-gcc-${{ matrix.build-type.key }}'
-G Ninja
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=/usr/local/bin/ccache
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=ccache
-D CMAKE_TOOLCHAIN_FILE:FILEPATH="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
-D CMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=OFF
-D CMAKE_BUILD_TYPE:STRING=${{ matrix.build-type.name }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ jobs:
-S .
-B '${{ runner.workspace }}/TinyORM-builds-cmake/build-manual-gcc-${{ matrix.build-type.key }}'
-G Ninja
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=/usr/local/bin/ccache
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=ccache
-D CMAKE_TOOLCHAIN_FILE:FILEPATH="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
-D CMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=OFF
-D CMAKE_BUILD_TYPE:STRING=${{ matrix.build-type.name }}
Expand Down Expand Up @@ -559,7 +559,7 @@ jobs:
-S .
-B '${{ runner.workspace }}/HelloWorld-builds-cmake/build-fetchcontent-gcc-${{ matrix.build-type.key }}'
-G Ninja
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=/usr/local/bin/ccache
-D CMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=ccache
-D CMAKE_TOOLCHAIN_FILE:FILEPATH="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
-D CMAKE_DISABLE_PRECOMPILE_HEADERS:BOOL=OFF
-D CMAKE_BUILD_TYPE:STRING=${{ matrix.build-type.name }}
Expand Down

0 comments on commit cfd1e0d

Please sign in to comment.