mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-04 04:00:30 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e380e63944 | ||
|
|
0f4d53b2aa | ||
|
|
ac22f2e031 | ||
|
|
c079fd141a | ||
|
|
edbd1909dc | ||
|
|
618bb235a3 | ||
|
|
93a94c2059 | ||
|
|
6bb27b4afe | ||
|
|
ca5df137f6 | ||
|
|
a7ac3cded3 | ||
|
|
2b9035e07b | ||
|
|
6c0394aa23 | ||
|
|
815f5e1266 | ||
|
|
d5d85f7b2e | ||
|
|
a0deac80c0 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
# Note: Specifying the version of valgrind is not supported.
|
||||
# cargo-watch is supported by cargo-binstall (through quickinstall)
|
||||
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cross,nextest,protoc,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
||||
- cargo-hack@0.5.18,cargo-llvm-cov@0.5.0,cargo-minimal-versions@0.1.5,parse-changelog@0.5.1,cargo-udeps@0.1.33,cargo-valgrind@2.1.0,cross@0.2.4,nextest@0.9.11,protoc@3.21.6,shellcheck@0.8.0,shfmt@3.5.1,wasm-pack@0.10.3,wasmtime@0.40.1,mdbook@0.4.21,mdbook-linkcheck@0.7.6,cargo-watch@8.1.1
|
||||
- cargo-hack@0.5.20,cargo-llvm-cov@0.5.0,cargo-minimal-versions@0.1.5,parse-changelog@0.5.1,cargo-udeps@0.1.33,cargo-valgrind@2.1.0,cross@0.2.4,nextest@0.9.11,protoc@3.21.6,shellcheck@0.8.0,shfmt@3.5.1,wasm-pack@0.10.3,wasmtime@1.0.0,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:
|
||||
|
||||
29
CHANGELOG.md
29
CHANGELOG.md
@@ -10,6 +10,28 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.13.7] - 2022-09-25
|
||||
|
||||
- Work around cargo-binstall upgrade issue on Windows. ([#23](https://github.com/taiki-e/install-action/pull/23))
|
||||
- Ensure that the latest cargo-binstall is used. ([#22](https://github.com/taiki-e/install-action/pull/22), thanks @NobodyXu)
|
||||
|
||||
## [1.13.6] - 2022-09-25
|
||||
|
||||
- Update `cargo-binstall@latest` to 0.13.3.
|
||||
|
||||
## [1.13.5] - 2022-09-24
|
||||
|
||||
- Update `cargo-hack@latest` to 0.5.20.
|
||||
- Downgrade `cargo-binstall@latest` to 0.13.1 to avoid [upstream bug](https://github.com/cargo-bins/cargo-binstall/issues/416).
|
||||
|
||||
## [1.13.4] - 2022-09-22
|
||||
|
||||
- Update `cargo-hack@latest` to 0.5.19.
|
||||
|
||||
## [1.13.3] - 2022-09-20
|
||||
|
||||
- Update `wasmtime@latest` to 1.0.0.
|
||||
|
||||
## [1.13.2] - 2022-09-16
|
||||
|
||||
- Update `cargo-udeps@latest` to 0.1.33.
|
||||
@@ -328,7 +350,12 @@ 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.13.2...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.13.7...HEAD
|
||||
[1.13.7]: https://github.com/taiki-e/install-action/compare/v1.13.6...v1.13.7
|
||||
[1.13.6]: https://github.com/taiki-e/install-action/compare/v1.13.5...v1.13.6
|
||||
[1.13.5]: https://github.com/taiki-e/install-action/compare/v1.13.4...v1.13.5
|
||||
[1.13.4]: https://github.com/taiki-e/install-action/compare/v1.13.3...v1.13.4
|
||||
[1.13.3]: https://github.com/taiki-e/install-action/compare/v1.13.2...v1.13.3
|
||||
[1.13.2]: https://github.com/taiki-e/install-action/compare/v1.13.1...v1.13.2
|
||||
[1.13.1]: https://github.com/taiki-e/install-action/compare/v1.13.0...v1.13.1
|
||||
[1.13.0]: https://github.com/taiki-e/install-action/compare/v1.12.4...v1.13.0
|
||||
|
||||
@@ -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.18
|
||||
tool: cargo-hack@0.5.20
|
||||
```
|
||||
|
||||
To install multiple tools:
|
||||
|
||||
31
main.sh
31
main.sh
@@ -79,11 +79,24 @@ host_triple() {
|
||||
fi
|
||||
}
|
||||
install_cargo_binstall() {
|
||||
if [[ ! -f "${cargo_bin}/cargo-binstall" ]]; then
|
||||
# https://github.com/cargo-bins/cargo-binstall/releases
|
||||
binstall_version="0.13.3"
|
||||
install_binstall='1'
|
||||
if [[ -f "${cargo_bin}/cargo-binstall${exe}" ]]; then
|
||||
if [[ "$(cargo binstall -V)" == "cargo-binstall ${binstall_version}" ]]; then
|
||||
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall${exe}"
|
||||
install_binstall=''
|
||||
else
|
||||
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall${exe}, but is not compatible version with install-action, upgrading"
|
||||
rm "${cargo_bin}/cargo-binstall${exe}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "${install_binstall}" ]]; then
|
||||
info "installing cargo-binstall"
|
||||
|
||||
host_triple
|
||||
base_url=https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall
|
||||
base_url="https://github.com/cargo-bins/cargo-binstall/releases/download/v${binstall_version}/cargo-binstall"
|
||||
case "${host}" in
|
||||
x86_64-unknown-linux-gnu) url="${base_url}-x86_64-unknown-linux-musl.tgz" ;;
|
||||
x86_64-unknown-linux-musl) url="${base_url}-x86_64-unknown-linux-musl.tgz" ;;
|
||||
@@ -106,9 +119,6 @@ install_cargo_binstall() {
|
||||
download "${url}" "${cargo_bin}" "cargo-binstall${exe}"
|
||||
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
|
||||
x cargo binstall -V
|
||||
else
|
||||
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall, upgrading"
|
||||
cargo binstall --secure --no-confirm --version '>=0.12.0' cargo-binstall
|
||||
fi
|
||||
}
|
||||
cargo_binstall() {
|
||||
@@ -119,12 +129,12 @@ cargo_binstall() {
|
||||
|
||||
install_cargo_binstall
|
||||
|
||||
# --secure mode enforce downloads over secure transports only.
|
||||
# By default, cargo-binstall enforce downloads over secure transports only.
|
||||
# As a result, http will be disabled, and it will also set
|
||||
# min tls version to be 1.2
|
||||
case "${version}" in
|
||||
latest) cargo binstall --force --secure --no-confirm "${tool}" ;;
|
||||
*) cargo binstall --force --secure --no-confirm --version "${version}" "${tool}" ;;
|
||||
latest) cargo binstall --force --no-confirm "${tool}" ;;
|
||||
*) cargo binstall --force --no-confirm --version "${version}" "${tool}" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -164,7 +174,7 @@ 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.18" ;;
|
||||
cargo-hack) latest_version="0.5.20" ;;
|
||||
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
||||
cargo-llvm-cov) latest_version="0.5.0" ;;
|
||||
# https://github.com/taiki-e/cargo-minimal-versions/releases
|
||||
@@ -407,7 +417,7 @@ for tool in "${tools[@]}"; do
|
||||
;;
|
||||
wasmtime)
|
||||
# https://github.com/bytecodealliance/wasmtime/releases
|
||||
latest_version="0.40.1"
|
||||
latest_version="1.0.0"
|
||||
repo="bytecodealliance/${tool}"
|
||||
case "${version}" in
|
||||
latest) version="${latest_version}" ;;
|
||||
@@ -467,6 +477,7 @@ for tool in "${tools[@]}"; do
|
||||
;;
|
||||
cargo-binstall)
|
||||
install_cargo_binstall
|
||||
echo
|
||||
continue
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user