Some work about adaptive color scheme for Web UI (PR #19901)
http://[316:c51a:62a3:8b9::4]/d4708/qBittorrent/src/branch/adaptive-webui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
80 lines
2.3 KiB
3 years ago
|
name: Coverity Scan
|
||
3 years ago
|
|
||
3 years ago
|
on:
|
||
|
schedule:
|
||
|
- cron: '0 0 1 * *' # Monthly (1st day of month at midnight)
|
||
|
workflow_dispatch: # Mainly for testing. Don't forget the Coverity usage limits.
|
||
|
|
||
2 years ago
|
permissions: {}
|
||
|
|
||
3 years ago
|
jobs:
|
||
|
coverity_scan:
|
||
|
name: Scan
|
||
2 years ago
|
runs-on: ubuntu-latest
|
||
|
|
||
3 years ago
|
steps:
|
||
3 years ago
|
- name: Checkout repository
|
||
3 years ago
|
uses: actions/checkout@v3
|
||
3 years ago
|
|
||
3 years ago
|
- name: Install dependencies
|
||
3 years ago
|
run: |
|
||
|
sudo apt update
|
||
|
sudo apt install \
|
||
3 years ago
|
build-essential cmake ninja-build pkg-config \
|
||
3 years ago
|
libboost-dev libssl-dev zlib1g-dev
|
||
|
|
||
|
- name: Install Qt
|
||
2 years ago
|
uses: jurplel/install-qt-action@v3
|
||
3 years ago
|
with:
|
||
2 years ago
|
version: "6.5.0"
|
||
2 years ago
|
archives: icu qtbase qtsvg qttools
|
||
3 years ago
|
|
||
3 years ago
|
- name: Install libtorrent
|
||
3 years ago
|
run: |
|
||
3 years ago
|
git clone \
|
||
2 years ago
|
--branch "v2.0.8" \
|
||
3 years ago
|
--depth 1 \
|
||
|
--recurse-submodules \
|
||
|
https://github.com/arvidn/libtorrent.git
|
||
3 years ago
|
cd libtorrent
|
||
|
cmake \
|
||
|
-B build \
|
||
|
-G "Ninja" \
|
||
3 years ago
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||
3 years ago
|
-Ddeprecated-functions=OFF
|
||
3 years ago
|
cmake --build build
|
||
3 years ago
|
sudo cmake --install build
|
||
3 years ago
|
|
||
3 years ago
|
- name: Download Coverity Build Tool
|
||
|
run: |
|
||
3 years ago
|
wget \
|
||
|
-q \
|
||
|
https://scan.coverity.com/download/linux64 \
|
||
3 years ago
|
--post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=qbittorrent%2FqBittorrent" \
|
||
3 years ago
|
-O coverity_tool.tgz
|
||
3 years ago
|
mkdir coverity_tool
|
||
|
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool
|
||
3 years ago
|
|
||
3 years ago
|
- name: Build qBittorrent
|
||
3 years ago
|
run: |
|
||
3 years ago
|
cmake \
|
||
|
-B build \
|
||
|
-G "Ninja" \
|
||
3 years ago
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||
3 years ago
|
-DGUI=ON \
|
||
2 years ago
|
-DQT6=ON \
|
||
3 years ago
|
-DVERBOSE_CONFIGURE=ON
|
||
3 years ago
|
export PATH="$(pwd)/coverity_tool/bin:$PATH"
|
||
3 years ago
|
cov-build --dir cov-int cmake --build build
|
||
3 years ago
|
|
||
3 years ago
|
- name: Submit the result to Coverity Scan
|
||
|
run: |
|
||
|
tar caf qbittorrent.xz cov-int
|
||
|
curl \
|
||
3 years ago
|
--form token="${{ secrets.COVERITY_SCAN_TOKEN }}" \
|
||
3 years ago
|
--form email=sledgehammer999@qbittorrent.org \
|
||
3 years ago
|
--form file=@qbittorrent.xz \
|
||
3 years ago
|
--form version="$(git rev-parse --short HEAD)" \
|
||
3 years ago
|
--form description="master" \
|
||
|
https://scan.coverity.com/builds?project=qbittorrent%2FqBittorrent
|