mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
GHA CI: use larger cache for compiling
Previous default was 500MB and it couldn't fit all compile results in it, enlarge it to 2GB. Note that 2GB isn't the actual size stored on the server, it will be compressed again by zstd and will be a lot smaller.
This commit is contained in:
parent
4924fb95f8
commit
9a3d560d9e
18
.github/workflows/ci_ubuntu.yaml
vendored
18
.github/workflows/ci_ubuntu.yaml
vendored
@ -18,24 +18,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install \
|
sudo apt install \
|
||||||
build-essential cmake ninja-build pkg-config \
|
build-essential cmake ninja-build pkg-config \
|
||||||
libboost-dev libssl-dev zlib1g-dev
|
libboost-dev libssl-dev qt515base qt515svg qt515tools zlib1g-dev
|
||||||
# sudo apt install libqt5svg5-dev qtbase5-dev qttools5-dev # the Qt version in the standard repositories is too old...
|
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: Chocobo1/setup-ccache-action@v1
|
uses: Chocobo1/setup-ccache-action@v1
|
||||||
with:
|
with:
|
||||||
update_packager_index: false
|
update_packager_index: false
|
||||||
|
ccache_options: |
|
||||||
# this will be installed under /opt/qt515. CMake will still find it automatically without additional hints
|
max_size=2G
|
||||||
# to speed up the process, only the required components are installed rather than the full qt515-meta-full metapackage
|
|
||||||
- name: Install Qt
|
|
||||||
run: |
|
|
||||||
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal
|
|
||||||
sudo apt install \
|
|
||||||
qt515base qt515svg qt515tools
|
|
||||||
|
|
||||||
- name: Install libtorrent
|
- name: Install libtorrent
|
||||||
run: |
|
run: |
|
||||||
@ -63,9 +57,7 @@ jobs:
|
|||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
--graphviz=build/target_graph.dot
|
--graphviz=build/target_graph.dot
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
sudo cmake --install build
|
||||||
- name: Install qBittorrent
|
|
||||||
run: sudo cmake --install build
|
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
17
.github/workflows/coverity-scan.yml
vendored
17
.github/workflows/coverity-scan.yml
vendored
@ -15,19 +15,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install \
|
sudo apt install \
|
||||||
build-essential cmake ninja-build pkg-config \
|
build-essential cmake ninja-build pkg-config \
|
||||||
libboost-dev libssl-dev zlib1g-dev
|
libboost-dev libssl-dev qt515base qt515svg qt515tools zlib1g-dev
|
||||||
# sudo apt install libqt5svg5-dev qtbase5-dev qttools5-dev # the Qt version in the standard repositories is too old...
|
|
||||||
|
|
||||||
# this will be installed under /opt/qt515. CMake will still find it automatically without additional hints
|
|
||||||
# to speed up the process, only the required components are installed rather than the full qt515-meta-full metapackage
|
|
||||||
- name: Install Qt
|
|
||||||
run: |
|
|
||||||
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal
|
|
||||||
sudo apt install \
|
|
||||||
qt515base qt515svg qt515tools
|
|
||||||
|
|
||||||
- name: Install libtorrent
|
- name: Install libtorrent
|
||||||
run: |
|
run: |
|
||||||
@ -52,7 +44,7 @@ jobs:
|
|||||||
mkdir coverity_tool
|
mkdir coverity_tool
|
||||||
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool
|
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool
|
||||||
|
|
||||||
- name: Configure qBittorrent
|
- name: Build qBittorrent
|
||||||
run: |
|
run: |
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
@ -60,9 +52,6 @@ jobs:
|
|||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DGUI=ON \
|
-DGUI=ON \
|
||||||
-DVERBOSE_CONFIGURE=ON
|
-DVERBOSE_CONFIGURE=ON
|
||||||
|
|
||||||
- name: Build qBittorrent
|
|
||||||
run: |
|
|
||||||
export PATH="$(pwd)/coverity_tool/bin:$PATH"
|
export PATH="$(pwd)/coverity_tool/bin:$PATH"
|
||||||
cov-build --dir cov-int cmake --build build
|
cov-build --dir cov-int cmake --build build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user