Compare commits

...

4 Commits

Author SHA1 Message Date
Taiki Endo
36cb23f9a6 Release 1.6.1 2022-07-25 19:49:44 +09:00
Taiki Endo
ab4e6f5142 Update changelog 2022-07-25 19:49:37 +09:00
Taiki Endo
aae9c8b0a3 Fix install log for nextest 2022-07-25 19:47:04 +09:00
Taiki Endo
6eaed8fc4e Remove ... from log 2022-07-25 19:42:59 +09:00
2 changed files with 15 additions and 8 deletions

View File

@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [1.6.1] - 2022-07-25
- Fix diagnostics.
## [1.6.0] - 2022-07-25
- Support mdbook-linkcheck.
@@ -218,7 +222,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.6.0...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.6.1...HEAD
[1.6.1]: https://github.com/taiki-e/install-action/compare/v1.6.0...v1.6.1
[1.6.0]: https://github.com/taiki-e/install-action/compare/v1.5.11...v1.6.0
[1.5.11]: https://github.com/taiki-e/install-action/compare/v1.5.10...v1.5.11
[1.5.10]: https://github.com/taiki-e/install-action/compare/v1.5.9...v1.5.10

16
main.sh
View File

@@ -43,7 +43,7 @@ download() {
mkdir -p .install-action-tmp
(
cd .install-action-tmp
info "downloading ${url}..."
info "downloading ${url}"
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "$url" -o tmp.zip
unzip tmp.zip
mv "${bin}" "${bin_dir}/"
@@ -59,7 +59,7 @@ download() {
if [[ "${components}" != "0" ]]; then
tar_args+=(--strip-components "${components}")
fi
info "downloading ${url}..."
info "downloading ${url}"
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
| tar "${tar_args[@]}" -C "${bin_dir}" "${bin}"
}
@@ -140,6 +140,7 @@ for tool in "${tools[@]}"; do
version="latest"
fi
tool="${tool%@*}"
bin="${tool}${exe}"
info "installing ${tool}@${version}"
case "${tool}" in
cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog)
@@ -187,6 +188,7 @@ for tool in "${tools[@]}"; do
download "${url}" "${cargo_bin}" "${tool}${exe}"
;;
nextest)
bin="cargo-nextest"
# https://nexte.st/book/pre-built-binaries.html
case "${OSTYPE}" in
linux*)
@@ -200,7 +202,7 @@ for tool in "${tools[@]}"; do
cygwin* | msys*) url="https://get.nexte.st/${version}/windows-tar" ;;
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
esac
info "downloading ${url}..."
info "downloading ${url}"
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
| tar xzf - -C "${cargo_bin}"
;;
@@ -247,7 +249,7 @@ for tool in "${tools[@]}"; do
latest) version="${latest_version}" ;;
esac
url="https://github.com/${repo}/releases/download/v${version}/shfmt_v${version}_${target}${exe}"
info "downloading ${url}..."
info "downloading ${url}"
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused -o /usr/local/bin/shfmt "${url}"
chmod +x /usr/local/bin/shfmt
;;
@@ -344,9 +346,9 @@ for tool in "${tools[@]}"; do
;;
esac
info "${tool} installed at $(type -P "${tool}")"
case "${tool}" in
cargo-* | nextest) x cargo "${tool#cargo-}" --version ;;
info "${tool} installed at $(type -P "${bin}")"
case "${bin}" in
cargo-*) x cargo "${tool#cargo-}" --version ;;
*) x "${tool}" --version ;;
esac
echo