Skip to content

Commit

Permalink
GitHub Actions: change NetBSD-9.2 sysroot download url due to the old…
Browse files Browse the repository at this point in the history
… one can not access to
  • Loading branch information
leleliu008 committed Dec 14, 2024
1 parent 4d5547e commit 0a9e33e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cross-compile-for--netbsd-on-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ jobs:
for item in base comp
do
FILENAME="$item.tar.xz"
curl -LO "https://ftp.netbsd.org/pub/NetBSD/NetBSD-${{ matrix.netbsd-release-version }}/amd64/binary/sets/$FILENAME"
if [ "${{ matrix.netbsd-release-version }}" = '9.2' ] ; then
SERVER_URL='https://archive.netbsd.org/pub/NetBSD-archive'
else
SERVER_URL='https://ftp.netbsd.org/pub/NetBSD'
fi
curl -LO "$SERVER_URL/NetBSD-${{ matrix.netbsd-release-version }}/amd64/binary/sets/$FILENAME"
tar vxf "$FILENAME" -C amd64-unknown-netbsd-sysroot
done
Expand Down

0 comments on commit 0a9e33e

Please sign in to comment.