Compare commits

...

14 Commits

Author SHA1 Message Date
Taiki Endo
d7602d9dcb Release 1.5.11 2022-07-25 14:49:21 +09:00
Taiki Endo
31800b17cc Fix cargo-binstall installation
Fixes #10
2022-07-25 14:47:39 +09:00
Taiki Endo
e6302a3430 Release 1.5.10 2022-07-24 13:22:47 +09:00
Taiki Endo
1e5fc1d1ff Update parse-changelog to 0.5.0 2022-07-24 13:08:44 +09:00
Taiki Endo
ca9824f699 Release 1.5.9 2022-07-23 03:34:27 +09:00
Taiki Endo
de0d285973 Update mdbook to 0.4.21 2022-07-23 03:32:40 +09:00
Taiki Endo
fb59c794dd Use macos-11 instead of deprecated macos-10.15
Refs: https://github.com/actions/virtual-environments/issues/5583
2022-07-21 21:58:15 +09:00
Taiki Endo
daa62f7ff1 Update wasmtime to 0.39.1 2022-07-21 21:58:07 +09:00
Taiki Endo
f113ef4cd9 Release 1.5.8 2022-07-21 10:16:36 +09:00
Taiki Endo
6a6a02956b Update wasmtime to 0.39.0 2022-07-21 10:07:56 +09:00
Taiki Endo
782f135cee Release 1.5.7 2022-07-21 00:18:12 +09:00
Taiki Endo
d39d50062b Update cargo-llvm-cov to 0.4.11 2022-07-21 00:16:52 +09:00
Taiki Endo
6f1ebcd9e2 Release 1.5.6 2022-07-18 16:01:38 +09:00
Taiki Endo
161dccbf9a Update cargo-llvm-cov to 0.4.10 2022-07-18 15:54:38 +09:00
3 changed files with 56 additions and 20 deletions

View File

@@ -28,7 +28,7 @@ jobs:
# Note: Specifying the version of valgrind and wasm-pack is not supported.
# cargo-watch is supported by cargo-binstall (through quickinstall)
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,cargo-watch
- cargo-hack@0.5.15,cargo-llvm-cov@0.4.9,cargo-minimal-versions@0.1.5,parse-changelog@0.4.9,cross@0.2.4,nextest@0.9.11,shellcheck@0.8.0,shfmt@3.5.1,wasmtime@0.38.1,mdbook@0.4.20,cargo-watch@8.1.1
- cargo-hack@0.5.15,cargo-llvm-cov@0.4.11,cargo-minimal-versions@0.1.5,parse-changelog@0.5.0,cross@0.2.4,nextest@0.9.11,shellcheck@0.8.0,shfmt@3.5.1,wasmtime@0.39.1,mdbook@0.4.21,cargo-watch@8.1.1
# Nextest supports basic version ranges as well
- nextest@0.9
include:
@@ -36,7 +36,7 @@ jobs:
# see https://github.com/rust-lang/mdBook/issues/1779
- os: ubuntu-18.04
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,cargo-watch
- os: macos-10.15
- os: macos-11
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,cargo-watch
- os: windows-2019
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cross,nextest,cargo-watch

View File

@@ -10,6 +10,31 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [1.5.11] - 2022-07-25
- Fix cargo-binstall installation on macOS and Windows.
## [1.5.10] - 2022-07-24
- Update `parse-changelog@latest` to 0.5.0.
## [1.5.9] - 2022-07-22
- Update `wasmtime@latest` to 0.39.1.
- Update `mdbook@latest` to 0.4.21.
## [1.5.8] - 2022-07-21
- Update `wasmtime@latest` to 0.39.0.
## [1.5.7] - 2022-07-20
- Update `cargo-llvm-cov@latest` to 0.4.11.
## [1.5.6] - 2022-07-18
- Update `cargo-llvm-cov@latest` to 0.4.10.
## [1.5.5] - 2022-07-18
- Update `cargo-hack@latest` to 0.5.15.
@@ -185,7 +210,13 @@ 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.5.5...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.5.11...HEAD
[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
[1.5.9]: https://github.com/taiki-e/install-action/compare/v1.5.8...v1.5.9
[1.5.8]: https://github.com/taiki-e/install-action/compare/v1.5.7...v1.5.8
[1.5.7]: https://github.com/taiki-e/install-action/compare/v1.5.6...v1.5.7
[1.5.6]: https://github.com/taiki-e/install-action/compare/v1.5.5...v1.5.6
[1.5.5]: https://github.com/taiki-e/install-action/compare/v1.5.4...v1.5.5
[1.5.4]: https://github.com/taiki-e/install-action/compare/v1.5.3...v1.5.4
[1.5.3]: https://github.com/taiki-e/install-action/compare/v1.5.2...v1.5.3

39
main.sh
View File

@@ -33,7 +33,7 @@ info() {
install_cargo_binstall() {
cargo_bin="${CARGO_HOME:-$HOME/.cargo}/bin"
if [ ! -f "${cargo_bin}/cargo-binstall" ]; then
if [[ ! -f "${cargo_bin}/cargo-binstall" ]]; then
info "installing cargo-binstall"
target="$(rustc -vV | grep host | cut -c 7-)"
@@ -62,20 +62,25 @@ install_cargo_binstall() {
*) bail "unsupported target '${target}' for cargo-binstall" ;;
esac
if [ $is_zip = true ]; then
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "$url" -o "cargo-binstall-${target}.zip"
unzip "cargo-binstall-${target}.zip"
rm "cargo-binstall-${target}.zip"
else
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "$url" | tar xzf -
fi
mkdir -p .install-action-tmp
(
cd .install-action-tmp
if [[ "${is_zip}" == "true" ]]; then
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "$url" -o "cargo-binstall-${target}.zip"
unzip "cargo-binstall-${target}.zip"
rm "cargo-binstall-${target}.zip"
else
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "$url" | tar xzf -
fi
mkdir -p "{cargo_bin}/"
mkdir -p "{cargo_bin}/"
case "${OSTYPE}" in
cygwin* | msys*) mv cargo-binstall.exe "${cargo_bin}/" ;;
*) mv cargo-binstall "${cargo_bin}/" ;;
esac
case "${OSTYPE}" in
cygwin* | msys*) mv cargo-binstall.exe "${cargo_bin}/" ;;
*) mv cargo-binstall "${cargo_bin}/" ;;
esac
)
rm -rf .install-action-tmp
else
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall"
fi
@@ -129,11 +134,11 @@ for tool in "${tools[@]}"; do
# https://github.com/taiki-e/cargo-hack/releases
cargo-hack) latest_version="0.5.15" ;;
# https://github.com/taiki-e/cargo-llvm-cov/releases
cargo-llvm-cov) latest_version="0.4.9" ;;
cargo-llvm-cov) latest_version="0.4.11" ;;
# https://github.com/taiki-e/cargo-minimal-versions/releases
cargo-minimal-versions) latest_version="0.1.5" ;;
# https://github.com/taiki-e/parse-changelog/releases
parse-changelog) latest_version="0.4.9" ;;
parse-changelog) latest_version="0.5.0" ;;
*) exit 1 ;;
esac
repo="taiki-e/${tool}"
@@ -251,7 +256,7 @@ for tool in "${tools[@]}"; do
;;
wasmtime)
# https://github.com/bytecodealliance/wasmtime/releases
latest_version="0.38.1"
latest_version="0.39.1"
repo="bytecodealliance/wasmtime"
case "${OSTYPE}" in
linux*) target="x86_64-linux" ;;
@@ -269,7 +274,7 @@ for tool in "${tools[@]}"; do
;;
mdbook)
# https://github.com/rust-lang/mdBook/releases
latest_version="0.4.20"
latest_version="0.4.21"
repo="rust-lang/mdBook"
case "${OSTYPE}" in
linux*) target="x86_64-unknown-linux-gnu" ;;