|
|
@ -8,30 +8,25 @@ on: [pull_request, push] |
|
|
|
|
|
|
|
|
|
|
|
env: |
|
|
|
env: |
|
|
|
VCPKG_COMMIT: 8dddc6c899ce6fdbeab38b525a31e7f23cb2d5bb |
|
|
|
VCPKG_COMMIT: 8dddc6c899ce6fdbeab38b525a31e7f23cb2d5bb |
|
|
|
VCPKG_DEST_MACOS: /Users/runner/qbt_tools/vcpkg |
|
|
|
|
|
|
|
VCPKG_DEST_WIN: C:\qbt_tools\vcpkg |
|
|
|
|
|
|
|
LIBTORRENT_VERSION_TAG: v1.2.14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
ubuntu: |
|
|
|
ubuntu: |
|
|
|
name: Ubuntu |
|
|
|
name: Ubuntu |
|
|
|
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
|
|
|
|
|
|
|
strategy: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
matrix: |
|
|
|
os: [ubuntu-20.04] |
|
|
|
|
|
|
|
qbt_gui: ["GUI=ON", "GUI=OFF"] |
|
|
|
qbt_gui: ["GUI=ON", "GUI=OFF"] |
|
|
|
|
|
|
|
libt_version: ["v2.0.4", "v1.2.14"] |
|
|
|
fail-fast: false |
|
|
|
fail-fast: false |
|
|
|
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defaults: |
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
shell: bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout repository |
|
|
|
- name: Checkout repository |
|
|
|
uses: actions/checkout@v2 |
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Setup ccache |
|
|
|
|
|
|
|
uses: hendrikmuhs/ccache-action@v1 |
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies |
|
|
|
- name: Install dependencies |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
sudo apt update |
|
|
|
sudo apt update |
|
|
@ -51,9 +46,10 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
- name: Install libtorrent |
|
|
|
- name: Install libtorrent |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
git clone https://github.com/arvidn/libtorrent |
|
|
|
git clone --branch ${{ matrix.libt_version }} --depth 1 https://github.com/arvidn/libtorrent.git |
|
|
|
cd libtorrent |
|
|
|
cd libtorrent |
|
|
|
git checkout ${{ env.LIBTORRENT_VERSION_TAG }} |
|
|
|
git submodule update --init --recursive |
|
|
|
|
|
|
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" |
|
|
|
cmake \ |
|
|
|
cmake \ |
|
|
|
-B build \ |
|
|
|
-B build \ |
|
|
|
-G "Ninja" \ |
|
|
|
-G "Ninja" \ |
|
|
@ -66,6 +62,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
- name: Build qBittorrent |
|
|
|
- name: Build qBittorrent |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
|
|
|
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" |
|
|
|
cmake \ |
|
|
|
cmake \ |
|
|
|
-B build \ |
|
|
|
-B build \ |
|
|
|
-G "Ninja" \ |
|
|
|
-G "Ninja" \ |
|
|
@ -82,7 +79,7 @@ jobs: |
|
|
|
- name: Upload build artifacts |
|
|
|
- name: Upload build artifacts |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: qBittorrent-CI_${{ matrix.os }}-x64_${{ matrix.qbt_gui }} |
|
|
|
name: qBittorrent-CI_ubuntu-20.04-x64_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }} |
|
|
|
path: | |
|
|
|
path: | |
|
|
|
build/compile_commands.json |
|
|
|
build/compile_commands.json |
|
|
|
build/install_manifest.txt |
|
|
|
build/install_manifest.txt |
|
|
@ -96,6 +93,9 @@ jobs: |
|
|
|
name: Windows |
|
|
|
name: Windows |
|
|
|
runs-on: windows-2019 |
|
|
|
runs-on: windows-2019 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
VCPKG_DEST_WIN: C:\qbt_tools\vcpkg |
|
|
|
|
|
|
|
|
|
|
|
defaults: |
|
|
|
defaults: |
|
|
|
run: |
|
|
|
run: |
|
|
|
shell: pwsh |
|
|
|
shell: pwsh |
|
|
@ -189,6 +189,9 @@ jobs: |
|
|
|
qbt_gui: ["GUI=ON", "GUI=OFF"] |
|
|
|
qbt_gui: ["GUI=ON", "GUI=OFF"] |
|
|
|
fail-fast: false |
|
|
|
fail-fast: false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
VCPKG_DEST_MACOS: /Users/runner/qbt_tools/vcpkg |
|
|
|
|
|
|
|
|
|
|
|
defaults: |
|
|
|
defaults: |
|
|
|
run: |
|
|
|
run: |
|
|
|
shell: pwsh |
|
|
|
shell: pwsh |
|
|
|