diff --git a/.github/workflows/ci_macos.yaml b/.github/workflows/ci_macos.yaml index 20d9f550f..b4d27a17e 100644 --- a/.github/workflows/ci_macos.yaml +++ b/.github/workflows/ci_macos.yaml @@ -85,8 +85,7 @@ jobs: cmake --build build sudo cmake --install build - - name: Build qBittorrent (Qt6) - if: startsWith(matrix.qt_version, 6) + - name: Build qBittorrent run: | CXXFLAGS="$CXXFLAGS -Wno-gnu-zero-variadic-macro-arguments -Werror -Wno-error=deprecated-declarations" \ LDFLAGS="$LDFLAGS -gz" \ diff --git a/.github/workflows/ci_ubuntu.yaml b/.github/workflows/ci_ubuntu.yaml index f98ccb50e..826f85d06 100644 --- a/.github/workflows/ci_ubuntu.yaml +++ b/.github/workflows/ci_ubuntu.yaml @@ -80,13 +80,12 @@ jobs: # to avoid scanning 3rdparty codebases, initialize it just before building qbt - name: Initialize CodeQL uses: github/codeql-action/init@v2 - if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') && startsWith(matrix.qt_version, 6) + if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') with: config-file: ./.github/workflows/helper/codeql/cpp.yaml languages: cpp - - name: Build qBittorrent (Qt6) - if: startsWith(matrix.qt_version, 6) + - name: Build qBittorrent run: | CXXFLAGS="$CXXFLAGS -Werror" \ LDFLAGS="$LDFLAGS -gz" \ @@ -107,7 +106,7 @@ jobs: - name: Run CodeQL analysis uses: github/codeql-action/analyze@v2 - if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') && startsWith(matrix.qt_version, 6) + if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') with: category: ${{ github.base_ref || github.ref_name }}