mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
GHA CI: Revise artifact folder layout
Now qbittorrent binaries will be placed in its own folder and cmake related artifacts will be in another. PR #15683.
This commit is contained in:
parent
51d754a53e
commit
e33c4086b9
16
.github/workflows/ci_macos.yaml
vendored
16
.github/workflows/ci_macos.yaml
vendored
@ -50,6 +50,7 @@ jobs:
|
|||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_CXX_STANDARD=17 \
|
-DCMAKE_CXX_STANDARD=17 \
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-Ddeprecated-functions=OFF \
|
-Ddeprecated-functions=OFF \
|
||||||
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}"
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}"
|
||||||
cmake --build build
|
cmake --build build
|
||||||
@ -62,6 +63,7 @@ jobs:
|
|||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
||||||
-DQt5_DIR="$Qt5_DIR" \
|
-DQt5_DIR="$Qt5_DIR" \
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
@ -75,6 +77,7 @@ jobs:
|
|||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
||||||
-DQT6=ON \
|
-DQT6=ON \
|
||||||
-DQt6_DIR="$Qt6_DIR" \
|
-DQt6_DIR="$Qt6_DIR" \
|
||||||
@ -82,10 +85,17 @@ jobs:
|
|||||||
-D${{ matrix.qbt_gui }}
|
-D${{ matrix.qbt_gui }}
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
|
- 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
|
||||||
|
cp libtorrent/build/compile_commands.json upload/cmake/libtorrent
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
||||||
path: |
|
path: upload
|
||||||
build/qbittorrent.app
|
|
||||||
build/qbittorrent-nox.app
|
|
||||||
|
35
.github/workflows/ci_ubuntu.yaml
vendored
35
.github/workflows/ci_ubuntu.yaml
vendored
@ -49,8 +49,7 @@ jobs:
|
|||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-Ddeprecated-functions=OFF \
|
-Ddeprecated-functions=OFF
|
||||||
--graphviz=cmake-build-dir/target_graph.dot
|
|
||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
sudo cmake --install build
|
||||||
|
|
||||||
@ -62,12 +61,12 @@ jobs:
|
|||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
||||||
-DQt5_DIR="$Qt5_DIR" \
|
-DQt5_DIR="$Qt5_DIR" \
|
||||||
-D${{ matrix.qbt_gui }} \
|
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
--graphviz=build/target_graph.dot
|
-D${{ matrix.qbt_gui }}
|
||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
DESTDIR="qbittorrent" cmake --install build
|
||||||
|
|
||||||
- name: Build qBittorrent (Qt6)
|
- name: Build qBittorrent (Qt6)
|
||||||
if: ${{ startsWith(matrix.qt_version, 6) }}
|
if: ${{ startsWith(matrix.qt_version, 6) }}
|
||||||
@ -77,23 +76,25 @@ jobs:
|
|||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DQt6_DIR="$Qt6_DIR" \
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
||||||
-DQT6=ON \
|
-DQT6=ON \
|
||||||
-D${{ matrix.qbt_gui }} \
|
-DQt6_DIR="$Qt6_DIR" \
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
--graphviz=build/target_graph.dot
|
-D${{ matrix.qbt_gui }}
|
||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
DESTDIR="qbittorrent" cmake --install build
|
||||||
|
|
||||||
|
- name: Prepare build artifacts
|
||||||
|
run: |
|
||||||
|
mkdir upload
|
||||||
|
mv qbittorrent upload
|
||||||
|
mkdir upload/cmake
|
||||||
|
cp build/compile_commands.json upload/cmake
|
||||||
|
mkdir upload/cmake/libtorrent
|
||||||
|
cp libtorrent/build/compile_commands.json upload/cmake/libtorrent
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI_ubuntu-20.04-x64_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
name: qBittorrent-CI_ubuntu-20.04-x64_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
||||||
path: |
|
path: upload
|
||||||
build/compile_commands.json
|
|
||||||
build/install_manifest.txt
|
|
||||||
build/target_graph.dot
|
|
||||||
build/qbittorrent
|
|
||||||
build/qbittorrent-nox
|
|
||||||
libtorrent/cmake-build-dir/compile_commands.json
|
|
||||||
libtorrent/cmake-build-dir/target_graph.dot
|
|
||||||
|
9
.github/workflows/ci_windows.yaml
vendored
9
.github/workflows/ci_windows.yaml
vendored
@ -7,9 +7,9 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
|
||||||
libt_version: ["v2.0.4", "v1.2.14"]
|
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
libt_version: ["2.0.4", "1.2.14"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
boost_path: "${{ github.workspace }}/boost"
|
boost_path: "${{ github.workspace }}/boost"
|
||||||
@ -78,13 +78,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Install libtorrent
|
- name: Install libtorrent
|
||||||
run: |
|
run: |
|
||||||
git clone --branch ${{ matrix.libt_version }} --depth 1 https://github.com/arvidn/libtorrent.git
|
git clone --branch v${{ matrix.libt_version }} --depth 1 https://github.com/arvidn/libtorrent.git
|
||||||
cd libtorrent
|
cd libtorrent
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cmake `
|
cmake `
|
||||||
-B build `
|
-B build `
|
||||||
-G "Ninja" `
|
-G "Ninja" `
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON `
|
||||||
-DCMAKE_INSTALL_PREFIX="${{ env.libtorrent_path }}" `
|
-DCMAKE_INSTALL_PREFIX="${{ env.libtorrent_path }}" `
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" `
|
-DCMAKE_TOOLCHAIN_FILE="${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" `
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" `
|
-DBOOST_ROOT="${{ env.boost_path }}" `
|
||||||
@ -120,6 +121,8 @@ jobs:
|
|||||||
mkdir upload/cmake
|
mkdir upload/cmake
|
||||||
copy build/compile_commands.json upload/cmake
|
copy build/compile_commands.json upload/cmake
|
||||||
copy build/target_graph.dot upload/cmake
|
copy build/target_graph.dot upload/cmake
|
||||||
|
mkdir upload/cmake/libtorrent
|
||||||
|
copy libtorrent/build/compile_commands.json upload/cmake/libtorrent
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user