Skip to content

Try download qbittorrent from Github #20

Try download qbittorrent from Github

Try download qbittorrent from Github #20

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- '.github/**'
- 'src/**'
- 'tests/**'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Restore qbittorrent-nox
id: qbittorrent-nox
uses: actions/cache/restore@v4
with:
path: qbittorrent-nox
key: ${{ runner.os }}-qbittorrent-nox-github
- if: ${{ steps.qbittorrent-nox.outputs.cache-hit != 'true' }}
name: Download qbittorrent-nox
run: wget -O qbittorrent-nox https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-5.0.4_v2.0.11/x86_64-qbittorrent-nox
- run: chmod +x qbittorrent-nox
- run: sudo ln -s $(pwd)/qbittorrent-nox /usr/local/bin/qbittorrent-nox
- if: ${{ steps.qbittorrent-nox.outputs.cache-hit != 'true' }}
name: Save qbittorrent-nox
uses: actions/cache/save@v4
with:
path: qbittorrent-nox
key: ${{ steps.qbittorrent-nox.outputs.cache-primary-key }}
- run: mkdir -p /tmp/qbittorrent-nox
- run: ./scripts/qbittorrent.sh start /tmp/qbittorrent-nox 8080
- run: ./scripts/pre-commit.sh
- run: ./scripts/qbittorrent.sh stop /tmp/qbittorrent-nox