From 015f31b8cc598d5ac9276d3582c8ac476585fcb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Mon, 16 Aug 2021 20:50:30 +0200 Subject: [PATCH] CI: fix gotorrent install path --- .github/actions/test-transfer/entrypoint.sh | 7 ++++--- Cargo.lock | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/actions/test-transfer/entrypoint.sh b/.github/actions/test-transfer/entrypoint.sh index 61f061e..5652ecd 100755 --- a/.github/actions/test-transfer/entrypoint.sh +++ b/.github/actions/test-transfer/entrypoint.sh @@ -26,8 +26,9 @@ $SUDO apt-get install -y cmake libssl-dev screen rtorrent mktorrent ssl-cert ca- git clone https://github.com/anacrolix/torrent.git gotorrent cd gotorrent -go build -o ../gotorrent ./cmd/torrent +go build -o $HOME/gotorrent ./cmd/torrent cd .. +file $HOME/gotorrent $SUDO curl -sL https://deb.nodesource.com/setup_15.x | bash - $SUDO apt-get install nodejs -y @@ -242,7 +243,7 @@ fi # Start seeding ws client 2 cd seed -GOPPROF=http GODEBUG=x509ignoreCN=0 ../gotorrent download --seed ../torrents/wss-ipv4.torrent > "$HOME/wss-seed2.log" 2>&1 & +GOPPROF=http GODEBUG=x509ignoreCN=0 $HOME/gotorrent download --seed ../torrents/wss-ipv4.torrent > "$HOME/wss-seed2.log" 2>&1 & cd .. # Start leeching clients @@ -256,7 +257,7 @@ 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 & cd leech -GOPPROF=http GODEBUG=x509ignoreCN=0 ../gotorrent download ../torrents/wss-ipv4.torrent > "$HOME/wss-leech.log" 2>&1 & +GOPPROF=http GODEBUG=x509ignoreCN=0 $HOME/gotorrent download ../torrents/wss-ipv4.torrent > "$HOME/wss-leech.log" 2>&1 & cd .. # Check for completion diff --git a/Cargo.lock b/Cargo.lock index 6d63746..19829c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,7 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 - [[package]] name = "addr2line" version = "0.16.0"