mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-16 17:10:24 +00:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
782f135cee | ||
|
|
d39d50062b | ||
|
|
6f1ebcd9e2 | ||
|
|
161dccbf9a | ||
|
|
b410f0ad6a | ||
|
|
e067205061 | ||
|
|
78118df4d7 | ||
|
|
1cbab0616a | ||
|
|
e937b634a0 | ||
|
|
37f510303a | ||
|
|
841e33c134 | ||
|
|
095ba5e160 | ||
|
|
0e32218b80 | ||
|
|
4a4d2c21ca | ||
|
|
64d4f090ec | ||
|
|
60952837b3 | ||
|
|
640bc768ee | ||
|
|
d5b4eb3fc2 | ||
|
|
83e8fa8971 | ||
|
|
2ab583ea78 | ||
|
|
6745402100 | ||
|
|
03433ef024 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
# Note: Specifying the version of valgrind and wasm-pack is not supported.
|
# Note: Specifying the version of valgrind and wasm-pack is not supported.
|
||||||
# cargo-watch is supported by cargo-binstall (through quickinstall)
|
# 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,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.15,cargo-llvm-cov@0.4.11,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
|
||||||
# Nextest supports basic version ranges as well
|
# Nextest supports basic version ranges as well
|
||||||
- nextest@0.9
|
- nextest@0.9
|
||||||
include:
|
include:
|
||||||
|
|||||||
46
CHANGELOG.md
46
CHANGELOG.md
@@ -10,6 +10,42 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [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.
|
||||||
|
|
||||||
|
## [1.5.4] - 2022-07-16
|
||||||
|
|
||||||
|
- Update `mdbook@latest` to 0.4.20.
|
||||||
|
- Update `cross@latest` to 0.2.4.
|
||||||
|
- Update `cargo-minimal-versions@latest` to 0.1.5.
|
||||||
|
- Update `parse-changelog@latest` to 0.4.9.
|
||||||
|
|
||||||
|
## [1.5.3] - 2022-07-07
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.4.9.
|
||||||
|
|
||||||
|
## [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
|
## [1.4.2] - 2022-06-16
|
||||||
|
|
||||||
- Update `cargo-llvm-cov@latest` to 0.4.8.
|
- Update `cargo-llvm-cov@latest` to 0.4.8.
|
||||||
@@ -157,7 +193,15 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
Initial release
|
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.7...HEAD
|
||||||
|
[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
|
||||||
|
[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.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.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
|
[1.4.0]: https://github.com/taiki-e/install-action/compare/v1.3.13...v1.4.0
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ To install a specific version, use `@version` syntax:
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: taiki-e/install-action@v1
|
- uses: taiki-e/install-action@v1
|
||||||
with:
|
with:
|
||||||
tool: cargo-hack@0.5.11
|
tool: cargo-hack@0.5.15
|
||||||
```
|
```
|
||||||
|
|
||||||
To install multiple tools:
|
To install multiple tools:
|
||||||
|
|||||||
26
main.sh
26
main.sh
@@ -88,12 +88,15 @@ cargo_binstall() {
|
|||||||
|
|
||||||
install_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
|
case "${version}" in
|
||||||
latest)
|
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
|
esac
|
||||||
}
|
}
|
||||||
@@ -124,13 +127,13 @@ for tool in "${tools[@]}"; do
|
|||||||
cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog)
|
cargo-hack | cargo-llvm-cov | cargo-minimal-versions | parse-changelog)
|
||||||
case "${tool}" in
|
case "${tool}" in
|
||||||
# https://github.com/taiki-e/cargo-hack/releases
|
# https://github.com/taiki-e/cargo-hack/releases
|
||||||
cargo-hack) latest_version="0.5.14" ;;
|
cargo-hack) latest_version="0.5.15" ;;
|
||||||
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
# https://github.com/taiki-e/cargo-llvm-cov/releases
|
||||||
cargo-llvm-cov) latest_version="0.4.8" ;;
|
cargo-llvm-cov) latest_version="0.4.11" ;;
|
||||||
# https://github.com/taiki-e/cargo-minimal-versions/releases
|
# https://github.com/taiki-e/cargo-minimal-versions/releases
|
||||||
cargo-minimal-versions) latest_version="0.1.4" ;;
|
cargo-minimal-versions) latest_version="0.1.5" ;;
|
||||||
# https://github.com/taiki-e/parse-changelog/releases
|
# https://github.com/taiki-e/parse-changelog/releases
|
||||||
parse-changelog) latest_version="0.4.8" ;;
|
parse-changelog) latest_version="0.4.9" ;;
|
||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
repo="taiki-e/${tool}"
|
repo="taiki-e/${tool}"
|
||||||
@@ -150,7 +153,7 @@ for tool in "${tools[@]}"; do
|
|||||||
;;
|
;;
|
||||||
cross)
|
cross)
|
||||||
# https://github.com/cross-rs/cross/releases
|
# https://github.com/cross-rs/cross/releases
|
||||||
latest_version="0.2.1"
|
latest_version="0.2.4"
|
||||||
repo="cross-rs/cross"
|
repo="cross-rs/cross"
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) target="x86_64-unknown-linux-musl" ;;
|
linux*) target="x86_64-unknown-linux-musl" ;;
|
||||||
@@ -161,7 +164,10 @@ for tool in "${tools[@]}"; do
|
|||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
esac
|
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
|
# shellcheck disable=SC2086
|
||||||
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
retry curl --proto '=https' --tlsv1.2 -fsSL --retry 10 --retry-connrefused "${url}" \
|
||||||
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
|
| tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
|
||||||
@@ -245,7 +251,7 @@ for tool in "${tools[@]}"; do
|
|||||||
;;
|
;;
|
||||||
wasmtime)
|
wasmtime)
|
||||||
# https://github.com/bytecodealliance/wasmtime/releases
|
# https://github.com/bytecodealliance/wasmtime/releases
|
||||||
latest_version="0.37.0"
|
latest_version="0.38.1"
|
||||||
repo="bytecodealliance/wasmtime"
|
repo="bytecodealliance/wasmtime"
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) target="x86_64-linux" ;;
|
linux*) target="x86_64-linux" ;;
|
||||||
@@ -263,7 +269,7 @@ for tool in "${tools[@]}"; do
|
|||||||
;;
|
;;
|
||||||
mdbook)
|
mdbook)
|
||||||
# https://github.com/rust-lang/mdBook/releases
|
# https://github.com/rust-lang/mdBook/releases
|
||||||
latest_version="0.4.18"
|
latest_version="0.4.20"
|
||||||
repo="rust-lang/mdBook"
|
repo="rust-lang/mdBook"
|
||||||
case "${OSTYPE}" in
|
case "${OSTYPE}" in
|
||||||
linux*) target="x86_64-unknown-linux-gnu" ;;
|
linux*) target="x86_64-unknown-linux-gnu" ;;
|
||||||
|
|||||||
@@ -99,16 +99,16 @@ tools=(
|
|||||||
git push origin main
|
git push origin main
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
|
|
||||||
version_tag="v${version%%.*}"
|
major_version_tag="v${version%%.*}"
|
||||||
git checkout -b "${version_tag}"
|
git checkout -b "${major_version_tag}"
|
||||||
git push origin refs/heads/"${version_tag}"
|
git push origin refs/heads/"${major_version_tag}"
|
||||||
if git --no-pager tag | grep -Eq "^${version_tag}$"; then
|
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
|
||||||
git tag -d "${version_tag}"
|
git tag -d "${major_version_tag}"
|
||||||
git push --delete origin refs/tags/"${version_tag}"
|
git push --delete origin refs/tags/"${major_version_tag}"
|
||||||
fi
|
fi
|
||||||
git tag "${version_tag}"
|
git tag "${major_version_tag}"
|
||||||
git checkout main
|
git checkout main
|
||||||
git branch -d "${version_tag}"
|
git branch -d "${major_version_tag}"
|
||||||
)
|
)
|
||||||
|
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user