mirror of
https://github.com/taiki-e/install-action
synced 2026-11-23 21:34:20 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c46ebf75b | ||
|
|
f912bf2387 | ||
|
|
2962aafadb | ||
|
|
581b570b73 | ||
|
|
57339998f1 | ||
|
|
dda69eeab2 | ||
|
|
3f4a57923d | ||
|
|
cb1e26fae1 | ||
|
|
74efbe3ca4 | ||
|
|
0ed66b7383 | ||
|
|
b9424a9dfb |
@@ -0,0 +1,9 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: /
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
commit-message:
|
||||||
|
prefix: ''
|
||||||
|
labels: []
|
||||||
@@ -27,19 +27,15 @@ jobs:
|
|||||||
tool:
|
tool:
|
||||||
# Note: Specifying the version of valgrind is not supported.
|
# Note: Specifying the version of valgrind 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,cargo-udeps,cross,nextest,protoc,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
- 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.17,cargo-llvm-cov@0.4.14,cargo-minimal-versions@0.1.5,parse-changelog@0.5.0,cargo-udeps@0.1.30,cross@0.2.4,nextest@0.9.11,protoc@3.21.4,shellcheck@0.8.0,shfmt@3.5.1,wasm-pack@0.10.3,wasmtime@0.39.1,mdbook@0.4.21,mdbook-linkcheck@0.7.6,cargo-watch@8.1.1
|
- cargo-hack@0.5.17,cargo-llvm-cov@0.4.14,cargo-minimal-versions@0.1.5,parse-changelog@0.5.0,cargo-udeps@0.1.32,cargo-valgrind@2.1.0,cross@0.2.4,nextest@0.9.11,protoc@3.21.5,shellcheck@0.8.0,shfmt@3.5.1,wasm-pack@0.10.3,wasmtime@0.40.0,mdbook@0.4.21,mdbook-linkcheck@0.7.6,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:
|
||||||
# Note: mdBook binary is incompatible with ubuntu 18.04,
|
|
||||||
# see https://github.com/rust-lang/mdBook/issues/1779
|
|
||||||
- os: ubuntu-18.04
|
|
||||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cross,nextest,protoc,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook-linkcheck,cargo-watch
|
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
||||||
- os: windows-2019
|
- os: windows-2019
|
||||||
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# ShellCheck configuration
|
||||||
|
# https://github.com/koalaman/shellcheck/blob/HEAD/shellcheck.1.md#rc-files
|
||||||
|
|
||||||
|
# See also:
|
||||||
|
# https://www.shellcheck.net/wiki/Optional
|
||||||
|
# https://google.github.io/styleguide/shellguide.html
|
||||||
|
|
||||||
|
# https://www.shellcheck.net/wiki/SC2292
|
||||||
|
# https://google.github.io/styleguide/shellguide.html#s6.3-tests
|
||||||
|
enable=require-double-brackets
|
||||||
|
|
||||||
|
# https://www.shellcheck.net/wiki/SC2250
|
||||||
|
# https://google.github.io/styleguide/shellguide.html#s5.6-variable-expansion
|
||||||
|
enable=require-variable-braces
|
||||||
+19
-2
@@ -10,10 +10,24 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.12.0] - 2022-08-28
|
||||||
|
|
||||||
|
- Support `cargo-valgrind`. ([#20](https://github.com/taiki-e/install-action/pull/20), thanks @messense)
|
||||||
|
|
||||||
|
## [1.11.2] - 2022-08-23
|
||||||
|
|
||||||
|
- Update `wasmtime@latest` to 0.40.0.
|
||||||
|
- Update `cargo-udeps@latest` to 0.1.32.
|
||||||
|
- Update `protoc@latest` to 3.21.5.
|
||||||
|
|
||||||
|
## [1.11.1] - 2022-08-13
|
||||||
|
|
||||||
|
- Make installation that uses `cargo-binstall` robust. ([#19](https://github.com/taiki-e/install-action/pull/19), thanks @NobodyXu)
|
||||||
|
|
||||||
## [1.11.0] - 2022-08-13
|
## [1.11.0] - 2022-08-13
|
||||||
|
|
||||||
- Update `cargo-hack@latest` to 0.5.17.
|
- Update `cargo-hack@latest` to 0.5.17.
|
||||||
- Support `cargo-udeps`.
|
- Support `cargo-udeps`. ([#17](https://github.com/taiki-e/install-action/pull/17), thanks @gifnksm)
|
||||||
|
|
||||||
## [1.10.4] - 2022-08-06
|
## [1.10.4] - 2022-08-06
|
||||||
|
|
||||||
@@ -286,7 +300,10 @@ 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.11.0...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.12.0...HEAD
|
||||||
|
[1.12.0]: https://github.com/taiki-e/install-action/compare/v1.11.2...v1.12.0
|
||||||
|
[1.11.2]: https://github.com/taiki-e/install-action/compare/v1.11.1...v1.11.2
|
||||||
|
[1.11.1]: https://github.com/taiki-e/install-action/compare/v1.11.0...v1.11.1
|
||||||
[1.11.0]: https://github.com/taiki-e/install-action/compare/v1.10.4...v1.11.0
|
[1.11.0]: https://github.com/taiki-e/install-action/compare/v1.10.4...v1.11.0
|
||||||
[1.10.4]: https://github.com/taiki-e/install-action/compare/v1.10.3...v1.10.4
|
[1.10.4]: https://github.com/taiki-e/install-action/compare/v1.10.3...v1.10.4
|
||||||
[1.10.3]: https://github.com/taiki-e/install-action/compare/v1.10.2...v1.10.3
|
[1.10.3]: https://github.com/taiki-e/install-action/compare/v1.10.2...v1.10.3
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ https://spdx.org/licenses
|
|||||||
| [**shellcheck**](https://www.shellcheck.net) | `/usr/local/bin` | [GitHub Releases](https://github.com/koalaman/shellcheck/releases) | Linux, macOS, Windows | [GPL-3.0-or-later](https://github.com/koalaman/shellcheck/blob/HEAD/LICENSE) |
|
| [**shellcheck**](https://www.shellcheck.net) | `/usr/local/bin` | [GitHub Releases](https://github.com/koalaman/shellcheck/releases) | Linux, macOS, Windows | [GPL-3.0-or-later](https://github.com/koalaman/shellcheck/blob/HEAD/LICENSE) |
|
||||||
| [**shfmt**](https://github.com/mvdan/sh) | `/usr/local/bin` | [GitHub Releases](https://github.com/mvdan/sh/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/mvdan/sh/blob/HEAD/LICENSE) |
|
| [**shfmt**](https://github.com/mvdan/sh) | `/usr/local/bin` | [GitHub Releases](https://github.com/mvdan/sh/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/mvdan/sh/blob/HEAD/LICENSE) |
|
||||||
| [**valgrind**](https://valgrind.org) | `/snap/bin` | [snap](https://snapcraft.io/install/valgrind/ubuntu) | Linux | [GPL-2.0-or-later](https://valgrind.org/docs/manual/license.gpl.html) |
|
| [**valgrind**](https://valgrind.org) | `/snap/bin` | [snap](https://snapcraft.io/install/valgrind/ubuntu) | Linux | [GPL-2.0-or-later](https://valgrind.org/docs/manual/license.gpl.html) |
|
||||||
|
| [**cargo-valgrind**](https://github.com/jfrimmel/cargo-valgrind) | `$CARGO_HOME/bin` | [GitHub Release](https://github.com/jfrimmel/cargo-valgrind/releases) | Linux, macOS, Windows | [MIT](https://github.com/jfrimmel/cargo-valgrind/blob/master/LICENSE-MIT) or [Apache-2.0](https://github.com/jfrimmel/cargo-valgrind/blob/master/LICENSE-APACHE) |
|
||||||
| [**wasm-pack**](https://github.com/rustwasm/wasm-pack) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rustwasm/wasm-pack/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-MIT) |
|
| [**wasm-pack**](https://github.com/rustwasm/wasm-pack) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rustwasm/wasm-pack/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/rustwasm/wasm-pack/blob/HEAD/LICENSE-MIT) |
|
||||||
| [**wasmtime**](https://github.com/bytecodealliance/wasmtime) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/bytecodealliance/wasmtime/releases) | Linux, macOS, Windows | [Apache-2.0 WITH LLVM-exception](https://github.com/bytecodealliance/wasmtime/blob/HEAD/LICENSE) |
|
| [**wasmtime**](https://github.com/bytecodealliance/wasmtime) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/bytecodealliance/wasmtime/releases) | Linux, macOS, Windows | [Apache-2.0 WITH LLVM-exception](https://github.com/bytecodealliance/wasmtime/blob/HEAD/LICENSE) |
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,8 @@ install_cargo_binstall() {
|
|||||||
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
|
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
|
||||||
x cargo binstall -V
|
x cargo binstall -V
|
||||||
else
|
else
|
||||||
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall"
|
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall, upgrading"
|
||||||
|
cargo binstall --secure --no-confirm --version '>=0.12.0' cargo-binstall
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
cargo_binstall() {
|
cargo_binstall() {
|
||||||
@@ -122,8 +123,8 @@ cargo_binstall() {
|
|||||||
# As a result, http will be disabled, and it will also set
|
# As a result, http will be disabled, and it will also set
|
||||||
# min tls version to be 1.2
|
# min tls version to be 1.2
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) cargo binstall --secure --no-confirm "$tool" ;;
|
latest) cargo binstall --force --secure --no-confirm "${tool}" ;;
|
||||||
*) cargo binstall --secure --no-confirm --version "$version" "$tool" ;;
|
*) cargo binstall --force --secure --no-confirm --version "${version}" "${tool}" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +146,7 @@ case "${OSTYPE}" in
|
|||||||
cygwin* | msys*) exe=".exe" ;;
|
cygwin* | msys*) exe=".exe" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cargo_bin="${CARGO_HOME:-"$HOME/.cargo"}/bin"
|
cargo_bin="${CARGO_HOME:-"${HOME}/.cargo"}/bin"
|
||||||
if [[ ! -d "${cargo_bin}" ]]; then
|
if [[ ! -d "${cargo_bin}" ]]; then
|
||||||
cargo_bin=/usr/local/bin
|
cargo_bin=/usr/local/bin
|
||||||
fi
|
fi
|
||||||
@@ -187,7 +188,7 @@ for tool in "${tools[@]}"; do
|
|||||||
;;
|
;;
|
||||||
cargo-udeps)
|
cargo-udeps)
|
||||||
# https://github.com/est31/cargo-udeps/releases
|
# https://github.com/est31/cargo-udeps/releases
|
||||||
latest_version="0.1.30"
|
latest_version="0.1.32"
|
||||||
repo="est31/${tool}"
|
repo="est31/${tool}"
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
@@ -211,6 +212,31 @@ for tool in "${tools[@]}"; do
|
|||||||
# leading `./` is required for cargo-udeps to work
|
# leading `./` is required for cargo-udeps to work
|
||||||
download "${url}" "${cargo_bin}" "./${tool}-v${version}-${target}/${tool}${exe}"
|
download "${url}" "${cargo_bin}" "./${tool}-v${version}-${target}/${tool}${exe}"
|
||||||
;;
|
;;
|
||||||
|
cargo-valgrind)
|
||||||
|
# https://github.com/jfrimmel/cargo-valgrind
|
||||||
|
latest_version="2.1.0"
|
||||||
|
repo="jfrimmel/${tool}"
|
||||||
|
case "${version}" in
|
||||||
|
latest) version="${latest_version}" ;;
|
||||||
|
esac
|
||||||
|
base_url="https://github.com/${repo}/releases/download/v${version}/${tool}-${version}"
|
||||||
|
case "${OSTYPE}" in
|
||||||
|
linux*)
|
||||||
|
target="x86_64-unknown-linux-musl"
|
||||||
|
url="${base_url}-${target}.tar.gz"
|
||||||
|
;;
|
||||||
|
darwin*)
|
||||||
|
target="x86_64-apple-darwin"
|
||||||
|
url="${base_url}-${target}.tar.gz"
|
||||||
|
;;
|
||||||
|
cygwin* | msys*)
|
||||||
|
target="x86_64-pc-windows-msvc"
|
||||||
|
url="${base_url}-${target}.zip"
|
||||||
|
;;
|
||||||
|
*) bail "unsupported OSTYPE '${OSTYPE}' for ${tool}" ;;
|
||||||
|
esac
|
||||||
|
download "${url}" "${cargo_bin}" "${tool}${exe}"
|
||||||
|
;;
|
||||||
cross)
|
cross)
|
||||||
# https://github.com/cross-rs/cross/releases
|
# https://github.com/cross-rs/cross/releases
|
||||||
latest_version="0.2.4"
|
latest_version="0.2.4"
|
||||||
@@ -251,7 +277,7 @@ for tool in "${tools[@]}"; do
|
|||||||
;;
|
;;
|
||||||
protoc)
|
protoc)
|
||||||
# https://github.com/protocolbuffers/protobuf/releases
|
# https://github.com/protocolbuffers/protobuf/releases
|
||||||
latest_version="3.21.4"
|
latest_version="3.21.5"
|
||||||
repo="protocolbuffers/protobuf"
|
repo="protocolbuffers/protobuf"
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
@@ -387,7 +413,7 @@ for tool in "${tools[@]}"; do
|
|||||||
;;
|
;;
|
||||||
wasmtime)
|
wasmtime)
|
||||||
# https://github.com/bytecodealliance/wasmtime/releases
|
# https://github.com/bytecodealliance/wasmtime/releases
|
||||||
latest_version="0.39.1"
|
latest_version="0.40.0"
|
||||||
repo="bytecodealliance/${tool}"
|
repo="bytecodealliance/${tool}"
|
||||||
case "${version}" in
|
case "${version}" in
|
||||||
latest) version="${latest_version}" ;;
|
latest) version="${latest_version}" ;;
|
||||||
@@ -458,6 +484,7 @@ for tool in "${tools[@]}"; do
|
|||||||
info "${tool} installed at $(type -P "${bin}")"
|
info "${tool} installed at $(type -P "${bin}")"
|
||||||
case "${bin}" in
|
case "${bin}" in
|
||||||
"cargo-udeps${exe}") x cargo udeps --help | head -1 ;; # cargo-udeps v0.1.30 does not support --version option
|
"cargo-udeps${exe}") x cargo udeps --help | head -1 ;; # cargo-udeps v0.1.30 does not support --version option
|
||||||
|
"cargo-valgrind${exe}") x cargo valgrind --help ;; # cargo-valgrind v2.1.0 does not support --version option
|
||||||
cargo-*) x cargo "${tool#cargo-}" --version ;;
|
cargo-*) x cargo "${tool#cargo-}" --version ;;
|
||||||
*) x "${tool}" --version ;;
|
*) x "${tool}" --version ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ tools=(
|
|||||||
cargo-llvm-cov
|
cargo-llvm-cov
|
||||||
cargo-minimal-versions
|
cargo-minimal-versions
|
||||||
cargo-udeps
|
cargo-udeps
|
||||||
|
cargo-valgrind
|
||||||
parse-changelog
|
parse-changelog
|
||||||
cargo-binstall
|
cargo-binstall
|
||||||
cross
|
cross
|
||||||
|
|||||||
Reference in New Issue
Block a user