Compare commits

...

9 Commits

Author SHA1 Message Date
Taiki Endo
d744cfca57 Release 1.8.3 2022-07-30 17:56:09 +09:00
Taiki Endo
f6e099c85c Support shorthand for mdbook-linkcheck 2022-07-30 17:56:01 +09:00
Taiki Endo
a86d24f499 Release 1.8.2 2022-07-30 16:55:08 +09:00
Taiki Endo
c13274e43a Update cargo-llvm-cov to 0.4.12 2022-07-30 16:53:29 +09:00
Taiki Endo
b0d750a59e Update cargo-hack to 0.5.16 2022-07-30 15:20:07 +09:00
Taiki Endo
7d5481ab3a Release 1.8.1 2022-07-26 12:08:13 +09:00
Taiki Endo
b6afd8d427 Fix cargo-binstall installation failure take 2 2022-07-26 12:07:17 +09:00
Taiki Endo
d1839c2f68 Fix cargo-binstall installation failure
`head` doesn't accept `1` option.
2022-07-26 12:05:34 +09:00
Taiki Endo
85064bbc1c Move cargo-binstall version output to install_cargo_binstall 2022-07-26 12:03:09 +09:00
5 changed files with 28 additions and 7 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,mdbook-linkcheck,cargo-watch
- 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,mdbook-linkcheck@0.7.6,cargo-watch@8.1.1
- cargo-hack@0.5.16,cargo-llvm-cov@0.4.12,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,mdbook-linkcheck@0.7.6,cargo-watch@8.1.1
# Nextest supports basic version ranges as well
- nextest@0.9
include:

View File

@@ -10,6 +10,19 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [1.8.3] - 2022-07-30
- Support `taiki-e/install-action@mdbook-linkcheck` shorthand for mdbook-linkcheck.
## [1.8.2] - 2022-07-30
- Update `cargo-hack@latest` to 0.5.16.
- Update `cargo-llvm-cov@latest` to 0.4.12.
## [1.8.1] - 2022-07-26
- Fix cargo-binstall installation failure.
## [1.8.0] - 2022-07-26
- Only use musl binaries for nextest if glibc isn't available. See [#13](https://github.com/taiki-e/install-action/issues/13) for more.
@@ -234,7 +247,10 @@ 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.8.0...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.8.3...HEAD
[1.8.3]: https://github.com/taiki-e/install-action/compare/v1.8.2...v1.8.3
[1.8.2]: https://github.com/taiki-e/install-action/compare/v1.8.1...v1.8.2
[1.8.1]: https://github.com/taiki-e/install-action/compare/v1.8.0...v1.8.1
[1.8.0]: https://github.com/taiki-e/install-action/compare/v1.7.0...v1.8.0
[1.7.0]: https://github.com/taiki-e/install-action/compare/v1.6.1...v1.7.0
[1.6.1]: https://github.com/taiki-e/install-action/compare/v1.6.0...v1.6.1

View File

@@ -39,7 +39,7 @@ To install a specific version, use `@version` syntax:
```yaml
- uses: taiki-e/install-action@v1
with:
tool: cargo-hack@0.5.15
tool: cargo-hack@0.5.16
```
To install multiple tools:

12
main.sh
View File

@@ -94,6 +94,8 @@ install_cargo_binstall() {
esac
download "${url}" "${cargo_bin}" "cargo-binstall${exe}"
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
x cargo binstall --help | head -1 # cargo binstall doesn't have a normal --version flag
else
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall"
fi
@@ -151,9 +153,9 @@ for tool in "${tools[@]}"; do
cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog)
case "${tool}" in
# https://github.com/taiki-e/cargo-hack/releases
cargo-hack) latest_version="0.5.15" ;;
cargo-hack) latest_version="0.5.16" ;;
# https://github.com/taiki-e/cargo-llvm-cov/releases
cargo-llvm-cov) latest_version="0.4.11" ;;
cargo-llvm-cov) latest_version="0.4.12" ;;
# 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
@@ -344,7 +346,10 @@ for tool in "${tools[@]}"; do
linux* | darwin*) chmod +x "${cargo_bin}/${tool}${exe}" ;;
esac
;;
cargo-binstall) install_cargo_binstall ;;
cargo-binstall)
install_cargo_binstall
continue
;;
*)
cargo_binstall "${tool}" "${version}"
continue
@@ -353,7 +358,6 @@ for tool in "${tools[@]}"; do
info "${tool} installed at $(type -P "${bin}")"
case "${bin}" in
cargo-binstall) x cargo binstall | head 1 ;; # cargo binstall doesn't have a normal --version flag
cargo-*) x cargo "${tool#cargo-}" --version ;;
*) x "${tool}" --version ;;
esac

View File

@@ -90,6 +90,7 @@ tools=(
wasm-pack
wasmtime
mdbook
mdbook-linkcheck
cargo-binstall
)