Browse Source

GHA CI: drop needless syntax

https://docs.github.com/en/actions/learn-github-actions/expressions#about-expressions
>When you use expressions in an if conditional, you may omit the
>expression syntax (${{ }}) because GitHub automatically evaluates the if conditional as an expression.
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
6fd522472c
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      .github/workflows/ci_macos.yaml
  2. 4
      .github/workflows/ci_ubuntu.yaml

4
.github/workflows/ci_macos.yaml

@ -84,7 +84,7 @@ jobs: @@ -84,7 +84,7 @@ jobs:
sudo cmake --install build
- name: Build qBittorrent (Qt5)
if: ${{ startsWith(matrix.qt_version, 5) }}
if: startsWith(matrix.qt_version, 5)
run: |
CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \
LDFLAGS="$LDFLAGS -gz" \
@ -103,7 +103,7 @@ jobs: @@ -103,7 +103,7 @@ jobs:
cmake --build build --target check
- name: Build qBittorrent (Qt6)
if: ${{ startsWith(matrix.qt_version, 6) }}
if: startsWith(matrix.qt_version, 6)
run: |
CXXFLAGS="$CXXFLAGS -Wno-gnu-zero-variadic-macro-arguments -Werror -Wno-error=deprecated-declarations" \
LDFLAGS="$LDFLAGS -gz" \

4
.github/workflows/ci_ubuntu.yaml

@ -75,7 +75,7 @@ jobs: @@ -75,7 +75,7 @@ jobs:
languages: cpp
- name: Build qBittorrent (Qt5)
if: ${{ startsWith(matrix.qt_version, 5) }}
if: startsWith(matrix.qt_version, 5)
run: |
CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \
LDFLAGS="$LDFLAGS -gz" \
@ -94,7 +94,7 @@ jobs: @@ -94,7 +94,7 @@ jobs:
DESTDIR="qbittorrent" cmake --install build
- name: Build qBittorrent (Qt6)
if: ${{ startsWith(matrix.qt_version, 6) }}
if: startsWith(matrix.qt_version, 6)
run: |
CXXFLAGS="$CXXFLAGS -Werror" \
LDFLAGS="$LDFLAGS -gz" \

Loading…
Cancel
Save