From 7b4e00bb79f15168311a20a70ff5963b81cd8ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Mon, 16 Aug 2021 19:35:16 +0200 Subject: [PATCH] CI: use gotorrent from git; use rust-bullseye --- .github/actions/test-transfer/Dockerfile | 2 +- .github/actions/test-transfer/entrypoint.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/actions/test-transfer/Dockerfile b/.github/actions/test-transfer/Dockerfile index 7e01849..b297bc7 100644 --- a/.github/actions/test-transfer/Dockerfile +++ b/.github/actions/test-transfer/Dockerfile @@ -1,5 +1,5 @@ # 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 COPY entrypoint.sh /entrypoint.sh diff --git a/.github/actions/test-transfer/entrypoint.sh b/.github/actions/test-transfer/entrypoint.sh index 2b43712..fbb96ff 100755 --- a/.github/actions/test-transfer/entrypoint.sh +++ b/.github/actions/test-transfer/entrypoint.sh @@ -24,8 +24,6 @@ fi $SUDO apt-get update $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 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 & +git clone https://github.com/anacrolix/torrent.git 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 .. # Check for completion