CI: use gotorrent from git; use rust-bullseye

This commit is contained in:
Joakim Frostegård 2021-08-16 19:35:16 +02:00
parent 82a36041b3
commit 7b4e00bb79
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,5 @@
# Container image that runs your code # Container image that runs your code
FROM rust:latest FROM rust:bullseye
# Copies your code file from your action repository to the filesystem path `/` of the container # Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh

View file

@ -24,8 +24,6 @@ fi
$SUDO apt-get update $SUDO apt-get update
$SUDO apt-get install -y cmake libssl-dev screen rtorrent mktorrent ssl-cert ca-certificates curl golang $SUDO apt-get install -y cmake libssl-dev screen rtorrent mktorrent ssl-cert ca-certificates curl golang
$SUDO go get github.com/anacrolix/torrent/cmd/torrent
$SUDO curl -sL https://deb.nodesource.com/setup_15.x | bash - $SUDO curl -sL https://deb.nodesource.com/setup_15.x | bash -
$SUDO apt-get install nodejs -y $SUDO apt-get install nodejs -y
@ -246,8 +244,9 @@ screen -dmS rtorrent-leech rtorrent
# ./node_modules/webtorrent-hybrid/bin/cmd.js download ./torrents/wss-ipv4.torrent -o leech > "$HOME/wss-leech.log" 2>&1 & # ./node_modules/webtorrent-hybrid/bin/cmd.js download ./torrents/wss-ipv4.torrent -o leech > "$HOME/wss-leech.log" 2>&1 &
git clone https://github.com/anacrolix/torrent.git leech
cd leech cd leech
GOPPROF=http torrent download ./torrents/wss-ipv4.torrent > "$HOME/wss-leech.log" 2>&1 & GOPPROF=http go run -v ./cmd/torrent download ./torrents/wss-ipv4.torrent > "$HOME/wss-leech.log" 2>&1 &
cd .. cd ..
# Check for completion # Check for completion