build: Replace axel with aria2c for file downloads and cleanup CI config.

This commit is contained in:
Yifan Gao
2025-12-15 05:27:54 +08:00
parent eea9ccd280
commit d21a799648
2 changed files with 2 additions and 4 deletions

View File

@@ -15,9 +15,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: cargo-bins/cargo-binstall@main - uses: cargo-bins/cargo-binstall@main
- run: sudo apt-get install -y tree jq axel
- uses: extractions/setup-just@v3 - uses: extractions/setup-just@v3
- uses: actions/cache@v5 - uses: actions/cache@v5
with: with:

View File

@@ -25,7 +25,7 @@ dependency:
prepare_autnums: prepare_autnums:
set -euo pipefail 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 awk -F'[<>]' '{print $3,$5}' autnums.html | grep '^AS' > asnames.txt
rm -f autnums.html rm -f autnums.html
echo "INFO> asnames.txt updated ($(wc -l < asnames.txt) entries)" >&2 echo "INFO> asnames.txt updated ($(wc -l < asnames.txt) entries)" >&2
@@ -54,7 +54,7 @@ prepare_rib collector:
outfile="rib-{{collector}}${suffix}" outfile="rib-{{collector}}${suffix}"
rm -f "${outfile}" rm -f "${outfile}"
axel -q -o "${outfile}" "${url}" aria2c -s 4 -x 4 -q -o "${outfile}" "${url}"
stat "${outfile}" stat "${outfile}"
echo "INFO> ${outfile} ready for bgptools" >&2 echo "INFO> ${outfile} ready for bgptools" >&2