Skip to content

Commit e63b381

Browse files
authored
GHA CI: enable WebTorrent support
This paves the way for future WebTorrent related development. PR #24564.
1 parent 2351e63 commit e63b381

4 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/ci_macos.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ jobs:
2323
boost_major_version: "1"
2424
boost_minor_version: "91"
2525
boost_patch_version: "0"
26+
libt_build_flags: "-Dwebtorrent=ON"
2627
- version: "2.0.13"
2728
boost_major_version: "1"
2829
boost_minor_version: "91"
2930
boost_patch_version: "0"
31+
libt_build_flags: ""
3032
- version: "1.2.20"
3133
boost_major_version: "1"
3234
boost_minor_version: "86"
3335
boost_patch_version: "0"
36+
libt_build_flags: ""
3437
qbt_gui: ["GUI=ON", "GUI=OFF"]
3538
qt_version: ["6.10.3"]
3639

@@ -109,7 +112,8 @@ jobs:
109112
-DCMAKE_CXX_STANDARD=20 \
110113
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
111114
-DBOOST_ROOT="${{ env.boost_path }}/lib/cmake" \
112-
-Ddeprecated-functions=OFF
115+
-Ddeprecated-functions=OFF \
116+
${{ matrix.libtorrent.libt_build_flags }}
113117
cmake --build build
114118
sudo cmake --install build
115119

.github/workflows/ci_ubuntu.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ jobs:
2424
boost_major_version: "1"
2525
boost_minor_version: "77"
2626
boost_patch_version: "0"
27+
libt_build_flags: "-Dwebtorrent=ON"
2728
- version: "2.0.13"
2829
boost_major_version: "1"
2930
boost_minor_version: "77"
3031
boost_patch_version: "0"
32+
libt_build_flags: ""
3133
- version: "1.2.20"
3234
boost_major_version: "1"
3335
boost_minor_version: "77"
3436
boost_patch_version: "0"
37+
libt_build_flags: ""
3538
qbt_gui: ["GUI=ON", "GUI=OFF"]
3639
qt_version: ["6.6.3"]
3740

@@ -104,7 +107,8 @@ jobs:
104107
-DCMAKE_CXX_STANDARD=20 \
105108
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
106109
-DBOOST_ROOT="${{ env.boost_path }}/lib/cmake" \
107-
-Ddeprecated-functions=OFF
110+
-Ddeprecated-functions=OFF \
111+
${{ matrix.libtorrent.libt_build_flags }}
108112
cmake --build build
109113
sudo cmake --install build
110114

.github/workflows/ci_windows.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ jobs:
2323
boost_major_version: "1"
2424
boost_minor_version: "91"
2525
boost_patch_version: "0"
26+
libt_build_flags: "-Dwebtorrent=ON"
2627
- version: "2.0.13"
2728
boost_major_version: "1"
2829
boost_minor_version: "91"
2930
boost_patch_version: "0"
31+
libt_build_flags: ""
3032
- version: "1.2.20"
3133
boost_major_version: "1"
3234
boost_minor_version: "86"
3335
boost_patch_version: "0"
36+
libt_build_flags: ""
3437
config:
3538
- os: windows-latest
3639
arch: x64
@@ -150,7 +153,8 @@ jobs:
150153
-DBUILD_SHARED_LIBS=OFF `
151154
-Ddeprecated-functions=OFF `
152155
-Dstatic_runtime=OFF `
153-
-DVCPKG_TARGET_TRIPLET=${{ matrix.config.arch }}-windows-static-md-release
156+
-DVCPKG_TARGET_TRIPLET=${{ matrix.config.arch }}-windows-static-md-release `
157+
${{ matrix.libtorrent.libt_build_flags }}
154158
cmake --build build
155159
cmake --install build
156160

.github/workflows/coverity-scan.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
boost_major_version: "1"
2020
boost_minor_version: "91"
2121
boost_patch_version: "0"
22+
libt_build_flags: ""
2223
qbt_gui: ["GUI=ON"]
2324
qt_version: ["6.10.3"]
2425

@@ -78,7 +79,8 @@ jobs:
7879
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
7980
-DCMAKE_CXX_STANDARD=20 \
8081
-DBOOST_ROOT="${{ env.boost_path }}/lib/cmake" \
81-
-Ddeprecated-functions=OFF
82+
-Ddeprecated-functions=OFF \
83+
${{ matrix.libtorrent.libt_build_flags }}
8284
cmake --build build
8385
sudo cmake --install build
8486

0 commit comments

Comments
 (0)