Skip to content

Commit

Permalink
ci: 🎡 musl.cc cache
Browse files Browse the repository at this point in the history
  • Loading branch information
abcfy2 committed Aug 9, 2022
1 parent a987a65 commit 5f9111a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ prepare_toolchain() {
fi

if [ ! -f "${DOWNLOADS_DIR}/${CROSS_HOST}-cross.tgz" ]; then
retry wget -cT30 -O "${DOWNLOADS_DIR}/${CROSS_HOST}-cross.tgz" "https://musl.cc/${CROSS_HOST}-cross.tgz"
rm -f "${DOWNLOADS_DIR}/${CROSS_HOST}-cross.tgz.part"
retry wget -cT30 --no-use-server-timestamps -O "${DOWNLOADS_DIR}/${CROSS_HOST}-cross.tgz.part" "https://musl.cc/${CROSS_HOST}-cross.tgz"
mv -fv "${DOWNLOADS_DIR}/${CROSS_HOST}-cross.tgz.part" "${DOWNLOADS_DIR}/${CROSS_HOST}-cross.tgz"
fi
tar -zxf "${DOWNLOADS_DIR}/${CROSS_HOST}-cross.tgz" --transform='s|^\./||S' --strip-components=1 -C "${CROSS_ROOT}"
}
Expand Down

0 comments on commit 5f9111a

Please sign in to comment.