mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 04:49:47 -07:00
parent
073ca4267c
commit
4057972b2d
2 changed files with 48 additions and 20 deletions
65
.github/workflows/coverity-scan.yaml
vendored
65
.github/workflows/coverity-scan.yaml
vendored
|
@ -12,6 +12,17 @@ jobs:
|
||||||
name: Scan
|
name: Scan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
libt_version: ["2.0.9"]
|
||||||
|
qbt_gui: ["GUI=ON"]
|
||||||
|
qt_version: ["6.5.2"]
|
||||||
|
|
||||||
|
env:
|
||||||
|
boost_path: "${{ github.workspace }}/../boost"
|
||||||
|
coverity_path: "${{ github.workspace }}/../coverity"
|
||||||
|
libtorrent_path: "${{ github.workspace }}/../libtorrent"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -20,40 +31,55 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install \
|
sudo apt install \
|
||||||
build-essential cmake ninja-build pkg-config \
|
build-essential cmake ninja-build \
|
||||||
libboost-dev libssl-dev zlib1g-dev
|
libssl-dev libxkbcommon-x11-dev libxcb-cursor-dev zlib1g-dev
|
||||||
|
|
||||||
|
- name: Install boost
|
||||||
|
run: |
|
||||||
|
curl \
|
||||||
|
-L \
|
||||||
|
-o "${{ runner.temp }}/boost.tar.gz" \
|
||||||
|
"https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz"
|
||||||
|
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."
|
||||||
|
mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}"
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: "6.5.2"
|
version: ${{ matrix.qt_version }}
|
||||||
archives: icu qtbase qtsvg qttools
|
archives: icu qtbase qtdeclarative qtsvg qttools
|
||||||
|
cache: true
|
||||||
|
|
||||||
- name: Install libtorrent
|
- name: Install libtorrent
|
||||||
run: |
|
run: |
|
||||||
git clone \
|
git clone \
|
||||||
--branch "v2.0.9" \
|
--branch v${{ matrix.libt_version }} \
|
||||||
--depth 1 \
|
--depth 1 \
|
||||||
--recurse-submodules \
|
--recurse-submodules \
|
||||||
https://github.com/arvidn/libtorrent.git
|
https://github.com/arvidn/libtorrent.git \
|
||||||
cd libtorrent
|
${{ env.libtorrent_path }}
|
||||||
|
cd ${{ env.libtorrent_path }}
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
-Ddeprecated-functions=OFF
|
-Ddeprecated-functions=OFF
|
||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
sudo cmake --install build
|
||||||
|
|
||||||
- name: Download Coverity Build Tool
|
- name: Download Coverity Build Tool
|
||||||
run: |
|
run: |
|
||||||
wget \
|
curl \
|
||||||
-q \
|
-L \
|
||||||
https://scan.coverity.com/download/linux64 \
|
-d "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=qbittorrent%2FqBittorrent" \
|
||||||
--post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=qbittorrent%2FqBittorrent" \
|
-o "${{ runner.temp }}/coverity_tool.tgz" \
|
||||||
-O coverity_tool.tgz
|
"https://scan.coverity.com/download/linux64"
|
||||||
mkdir coverity_tool
|
mkdir -p ${{ env.coverity_path }}
|
||||||
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool
|
tar \
|
||||||
|
-xf "${{ runner.temp }}/coverity_tool.tgz" \
|
||||||
|
-C "${{ env.coverity_path }}" \
|
||||||
|
--strip-components 1
|
||||||
|
|
||||||
- name: Build qBittorrent
|
- name: Build qBittorrent
|
||||||
run: |
|
run: |
|
||||||
|
@ -61,10 +87,13 @@ jobs:
|
||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DGUI=ON \
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
-DVERBOSE_CONFIGURE=ON
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
export PATH="$(pwd)/coverity_tool/bin:$PATH"
|
-D${{ matrix.qbt_gui }}
|
||||||
cov-build --dir cov-int cmake --build build
|
PATH="${{ env.coverity_path }}/bin:$PATH" \
|
||||||
|
cov-build \
|
||||||
|
--dir cov-int \
|
||||||
|
cmake --build build
|
||||||
|
|
||||||
- name: Submit the result to Coverity Scan
|
- name: Submit the result to Coverity Scan
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
qBittorrent - A BitTorrent client in Qt
|
qBittorrent - A BitTorrent client in Qt
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
[](https://ci.appveyor.com/project/qbittorrent/qBittorrent)
|
[](https://github.com/qbittorrent/qBittorrent/actions)
|
||||||
[](https://github.com/qbittorrent/qBittorrent/actions)
|
|
||||||
[](https://scan.coverity.com/projects/5494)
|
[](https://scan.coverity.com/projects/5494)
|
||||||
********************************
|
********************************
|
||||||
### Description:
|
### Description:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue