mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-09 13:24:26 +00:00
GHA CI: remove redundant conditionals
This commit is contained in:
parent
180e708f3c
commit
4d98761e99
3
.github/workflows/ci_macos.yaml
vendored
3
.github/workflows/ci_macos.yaml
vendored
@ -85,8 +85,7 @@ jobs:
|
|||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
sudo cmake --install build
|
||||||
|
|
||||||
- name: Build qBittorrent (Qt6)
|
- name: Build qBittorrent
|
||||||
if: startsWith(matrix.qt_version, 6)
|
|
||||||
run: |
|
run: |
|
||||||
CXXFLAGS="$CXXFLAGS -Wno-gnu-zero-variadic-macro-arguments -Werror -Wno-error=deprecated-declarations" \
|
CXXFLAGS="$CXXFLAGS -Wno-gnu-zero-variadic-macro-arguments -Werror -Wno-error=deprecated-declarations" \
|
||||||
LDFLAGS="$LDFLAGS -gz" \
|
LDFLAGS="$LDFLAGS -gz" \
|
||||||
|
7
.github/workflows/ci_ubuntu.yaml
vendored
7
.github/workflows/ci_ubuntu.yaml
vendored
@ -80,13 +80,12 @@ jobs:
|
|||||||
# to avoid scanning 3rdparty codebases, initialize it just before building qbt
|
# to avoid scanning 3rdparty codebases, initialize it just before building qbt
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
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:
|
with:
|
||||||
config-file: ./.github/workflows/helper/codeql/cpp.yaml
|
config-file: ./.github/workflows/helper/codeql/cpp.yaml
|
||||||
languages: cpp
|
languages: cpp
|
||||||
|
|
||||||
- name: Build qBittorrent (Qt6)
|
- name: Build qBittorrent
|
||||||
if: startsWith(matrix.qt_version, 6)
|
|
||||||
run: |
|
run: |
|
||||||
CXXFLAGS="$CXXFLAGS -Werror" \
|
CXXFLAGS="$CXXFLAGS -Werror" \
|
||||||
LDFLAGS="$LDFLAGS -gz" \
|
LDFLAGS="$LDFLAGS -gz" \
|
||||||
@ -107,7 +106,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run CodeQL analysis
|
- name: Run CodeQL analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
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:
|
with:
|
||||||
category: ${{ github.base_ref || github.ref_name }}
|
category: ${{ github.base_ref || github.ref_name }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user