From 6c6474291eb3d041123d539676a4915c99c63904 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 26 Feb 2022 14:17:38 +0800 Subject: [PATCH 1/2] GHA CI: install boost library manually libtorrent 2.0.5 has build issues with boost >= 1.78. --- .github/workflows/ci_macos.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_macos.yaml b/.github/workflows/ci_macos.yaml index 82150bc94..c2fe40639 100644 --- a/.github/workflows/ci_macos.yaml +++ b/.github/workflows/ci_macos.yaml @@ -22,6 +22,7 @@ jobs: qt_version: "6.2.0" env: + boost_path: "${{ github.workspace }}/../boost" openssl_root: /usr/local/opt/openssl@1.1 steps: @@ -33,13 +34,22 @@ jobs: brew update > /dev/null brew install \ cmake ninja \ - boost openssl@1.1 zlib + openssl@1.1 zlib - name: Setup ccache uses: Chocobo1/setup-ccache-action@v1 with: update_packager_index: false + - name: Install boost + run: | + curl \ + -L \ + -o "${{ runner.temp }}/boost.tar.bz2" \ + "https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.bz2" + tar -xf "${{ runner.temp }}/boost.tar.bz2" -C "${{ github.workspace }}/.." + mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}" + - name: Install Qt uses: jurplel/install-qt-action@v2 with: @@ -59,6 +69,7 @@ jobs: -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_CXX_STANDARD=17 \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -DBOOST_ROOT="${{ env.boost_path }}" \ -Ddeprecated-functions=OFF \ -DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" cmake --build build @@ -73,6 +84,7 @@ jobs: -G "Ninja" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -DBOOST_ROOT="${{ env.boost_path }}" \ -DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \ -DVERBOSE_CONFIGURE=ON \ -D${{ matrix.qbt_gui }} @@ -87,6 +99,7 @@ jobs: -G "Ninja" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -DBOOST_ROOT="${{ env.boost_path }}" \ -DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \ -DQT6=ON \ -DVERBOSE_CONFIGURE=ON \ From 0c118bed61bf8e90ccaaa34a601bab15624c301d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 27 Feb 2022 15:35:41 +0800 Subject: [PATCH 2/2] GHA CI: disable uploading built artifacts for macOS The binary aren't usable universally because users are required to install related libraries. --- .github/workflows/ci_macos.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci_macos.yaml b/.github/workflows/ci_macos.yaml index c2fe40639..14cf5b87c 100644 --- a/.github/workflows/ci_macos.yaml +++ b/.github/workflows/ci_macos.yaml @@ -109,7 +109,6 @@ jobs: - name: Prepare build artifacts run: | mkdir upload - mv build/qbittorrent*.app upload mkdir upload/cmake cp build/compile_commands.json upload/cmake mkdir upload/cmake/libtorrent @@ -118,5 +117,5 @@ jobs: - name: Upload build artifacts uses: actions/upload-artifact@v2 with: - name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }} + name: build-info_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }} path: upload