Compare commits

...

10 Commits

Author SHA1 Message Date
Taiki Endo
0e32218b80 Release 1.5.2 2022-07-03 01:22:05 +09:00
Taiki Endo
4a4d2c21ca Update cross to 0.2.2 2022-07-02 22:50:11 +09:00
Taiki Endo
64d4f090ec Revert "Update cross to 0.2.2"
This reverts commit 60952837b3.
2022-07-02 22:40:49 +09:00
Taiki Endo
60952837b3 Update cross to 0.2.2 2022-07-02 22:38:45 +09:00
Taiki Endo
640bc768ee Release 1.5.1 2022-07-02 22:34:50 +09:00
Taiki Endo
d5b4eb3fc2 Update mdbook to 0.4.19 2022-07-02 21:04:09 +09:00
Taiki Endo
83e8fa8971 Release 1.5.0 2022-06-29 00:36:31 +09:00
Taiki Endo
2ab583ea78 Update changelog 2022-06-29 00:32:07 +09:00
Taiki Endo
6745402100 Update wasmtime to 0.38.1 2022-06-29 00:30:20 +09:00
Jiahao XU
03433ef024 Enable secure mode for cargo-binstall (#9)
`--secure` mode 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

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-06-29 00:28:27 +09:00
3 changed files with 30 additions and 8 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.14,cargo-llvm-cov@0.4.8,cargo-minimal-versions@0.1.4,parse-changelog@0.4.8,cross@0.2.1,nextest@0.9.11,shellcheck@0.8.0,shfmt@3.5.1,wasmtime@0.37.0,mdbook@0.4.18,cargo-watch@8.1.1
- cargo-hack@0.5.14,cargo-llvm-cov@0.4.8,cargo-minimal-versions@0.1.4,parse-changelog@0.4.8,cross@0.2.2,nextest@0.9.11,shellcheck@0.8.0,shfmt@3.5.1,wasmtime@0.38.1,mdbook@0.4.19,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.5.2] - 2022-07-02
- Update `cross@latest` to 0.2.2.
## [1.5.1] - 2022-07-02
- Update `mdbook@latest` to 0.4.19.
## [1.5.0] - 2022-06-28
- Enable secure mode for `cargo-binstall`. ([#9](https://github.com/taiki-e/install-action/pull/9), thanks @NobodyXu)
- Update `wasmtime@latest` to 0.38.1.
## [1.4.2] - 2022-06-16
- Update `cargo-llvm-cov@latest` to 0.4.8.
@@ -157,7 +170,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.4.2...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.5.2...HEAD
[1.5.2]: https://github.com/taiki-e/install-action/compare/v1.5.1...v1.5.2
[1.5.1]: https://github.com/taiki-e/install-action/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/taiki-e/install-action/compare/v1.4.2...v1.5.0
[1.4.2]: https://github.com/taiki-e/install-action/compare/v1.4.1...v1.4.2
[1.4.1]: https://github.com/taiki-e/install-action/compare/v1.4.0...v1.4.1
[1.4.0]: https://github.com/taiki-e/install-action/compare/v1.3.13...v1.4.0

18
main.sh
View File

@@ -88,12 +88,15 @@ cargo_binstall() {
install_cargo_binstall
# --secure mode 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 --no-confirm "$tool"
cargo binstall --secure --no-confirm "$tool"
;;
*)
cargo binstall --no-confirm --version "$version" "$tool"
cargo binstall --secure --no-confirm --version "$version" "$tool"
;;
esac
}
@@ -150,7 +153,7 @@ for tool in "${tools[@]}"; do
;;
cross)
# https://github.com/cross-rs/cross/releases
latest_version="0.2.1"
latest_version="0.2.2"
repo="cross-rs/cross"
case "${OSTYPE}" in
linux*) target="x86_64-unknown-linux-musl" ;;
@@ -161,7 +164,10 @@ for tool in "${tools[@]}"; do
case "${version}" in
latest) version="${latest_version}" ;;
esac
url="https://github.com/${repo}/releases/download/v${version}/cross-v${version}-${target}.tar.gz"
case "${version}" in
0.1* | 0.2.[0-1]) url="https://github.com/${repo}/releases/download/v${version}/cross-v${version}-${target}.tar.gz" ;;
*) url="https://github.com/${repo}/releases/download/v${version}/cross-${target}.tar.gz" ;;
esac
# shellcheck disable=SC2086
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
@@ -245,7 +251,7 @@ for tool in "${tools[@]}"; do
;;
wasmtime)
# https://github.com/bytecodealliance/wasmtime/releases
latest_version="0.37.0"
latest_version="0.38.1"
repo="bytecodealliance/wasmtime"
case "${OSTYPE}" in
linux*) target="x86_64-linux" ;;
@@ -263,7 +269,7 @@ for tool in "${tools[@]}"; do
;;
mdbook)
# https://github.com/rust-lang/mdBook/releases
latest_version="0.4.18"
latest_version="0.4.19"
repo="rust-lang/mdBook"
case "${OSTYPE}" in
linux*) target="x86_64-unknown-linux-gnu" ;;