2 on: [pull_request, push]
11 libt_version: ["v2.0.4", "v1.2.14"]
12 qbt_gui: ["GUI=ON", "GUI=OFF"]
16 openssl_root: /usr/local/opt/openssl@1.1
19 - name: Checkout repository
20 uses: actions/checkout@v2
23 uses: hendrikmuhs/ccache-action@v1
27 - name: Install dependencies
29 brew update > /dev/null
32 boost openssl@1.1 qt@5 zlib
35 # workaround for cmake + Qt
36 sudo ln -s /usr/local/opt/qt@5/mkspecs /usr/local/mkspecs
37 sudo ln -s /usr/local/opt/qt@5/plugins /usr/local/plugins
39 - name: Install libtorrent
41 git clone --branch ${{ matrix.libt_version }} --depth 1 https://github.com/arvidn/libtorrent.git
43 git submodule update --init --recursive
44 export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
48 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
49 -DCMAKE_CXX_STANDARD=17 \
50 -Ddeprecated-functions=OFF \
51 -DOPENSSL_ROOT_DIR="${{ env.openssl_root }}"
53 sudo cmake --install build
55 - name: Build qBittorrent
57 export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
61 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
62 -D${{ matrix.qbt_gui }} \
63 -DVERBOSE_CONFIGURE=ON \
64 -DOPENSSL_ROOT_DIR="${{ env.openssl_root }}"
67 - name: Upload build artifacts
68 uses: actions/upload-artifact@v2
70 name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}
73 build/qbittorrent-nox.app