Skip to content

Commit c483157

Browse files
committed
Try download qbittorrent from Github
1 parent 65adaf0 commit c483157

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,24 @@ jobs:
2727
with:
2828
components: clippy, rustfmt
2929
- uses: Swatinem/rust-cache@v2
30-
- run: sudo apt update && sudo apt install qbittorrent-nox
30+
31+
- name: Restore qbittorrent-nox
32+
id: qbittorrent-nox
33+
uses: actions/cache/restore@v4
34+
with:
35+
path: qbittorrent-nox
36+
key: ${{ runner.os }}-qbittorrent-nox
37+
- if: ${{ steps.qbittorrent-nox.outputs.cache-hit != 'true' }}
38+
name: Download qbittorrent-nox
39+
run: wget -O qbittorrent-nox https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-5.0.4_v2.0.11/x86-qbittorrent-nox
40+
- run: chmod +x qbittorrent-nox
41+
- run: sudo ln -s $(pwd)/qbittorrent-nox /usr/local/bin/qbittorrent-nox
42+
- if: ${{ steps.qbittorrent-nox.outputs.cache-hit != 'true' }}
43+
name: Save qbittorrent-nox
44+
uses: actions/cache/save@v4
45+
with:
46+
path: qbittorrent-nox
47+
key: ${{ steps.qbittorrent-nox.outputs.cache-primary-key }}
3148
- run: mkdir -p /tmp/qbittorrent-nox
3249
- run: ./scripts/qbittorrent.sh start /tmp/qbittorrent-nox 8080
3350
- run: ./scripts/pre-commit.sh

0 commit comments

Comments
 (0)