From d21a799648120a60f617c783064eeb7b84cf80b4 Mon Sep 17 00:00:00 2001 From: Yifan Gao Date: Mon, 15 Dec 2025 05:27:54 +0800 Subject: [PATCH] build: Replace axel with aria2c for file downloads and cleanup CI config. --- .github/workflows/build.yml | 2 -- justfile | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b4c4cdc..56ba4848 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: dtolnay/rust-toolchain@stable - uses: cargo-bins/cargo-binstall@main - - run: sudo apt-get install -y tree jq axel - uses: extractions/setup-just@v3 - uses: actions/cache@v5 with: diff --git a/justfile b/justfile index 76b83e99..0bea1c1b 100644 --- a/justfile +++ b/justfile @@ -25,7 +25,7 @@ dependency: prepare_autnums: set -euo pipefail - axel -q -o autnums.html https://bgp.potaroo.net/cidr/autnums.html + aria2c -s 4 -x 4 -q -o autnums.html --allow-overwrite=true https://bgp.potaroo.net/cidr/autnums.html awk -F'[<>]' '{print $3,$5}' autnums.html | grep '^AS' > asnames.txt rm -f autnums.html echo "INFO> asnames.txt updated ($(wc -l < asnames.txt) entries)" >&2 @@ -54,7 +54,7 @@ prepare_rib collector: outfile="rib-{{collector}}${suffix}" rm -f "${outfile}" - axel -q -o "${outfile}" "${url}" + aria2c -s 4 -x 4 -q -o "${outfile}" "${url}" stat "${outfile}" echo "INFO> ${outfile} ready for bgptools" >&2