mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-12-15 05:43:16 +08:00
build: Replace axel with aria2c for file downloads and cleanup CI config.
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -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:
|
||||||
|
|||||||
4
justfile
4
justfile
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user