mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-06 21:20:26 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
581b570b73 | ||
|
|
57339998f1 | ||
|
|
dda69eeab2 | ||
|
|
3f4a57923d | ||
|
|
cb1e26fae1 | ||
|
|
74efbe3ca4 | ||
|
|
0ed66b7383 | ||
|
|
b9424a9dfb |
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: daily
|
||||
commit-message:
|
||||
prefix: ''
|
||||
labels: []
|
||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -28,14 +28,10 @@ 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,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,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@0.9
|
||||
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
|
||||
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
|
||||
- os: windows-2019
|
||||
|
||||
14
.shellcheckrc
Normal file
14
.shellcheckrc
Normal file
@@ -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
|
||||
16
CHANGELOG.md
16
CHANGELOG.md
@@ -10,10 +10,20 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [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
|
||||
|
||||
- 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
|
||||
|
||||
@@ -286,7 +296,9 @@ 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.11.0...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.11.2...HEAD
|
||||
[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.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
|
||||
|
||||
15
main.sh
15
main.sh
@@ -107,7 +107,8 @@ install_cargo_binstall() {
|
||||
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"
|
||||
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() {
|
||||
@@ -122,8 +123,8 @@ cargo_binstall() {
|
||||
# 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 --secure --no-confirm "$tool" ;;
|
||||
*) cargo binstall --secure --no-confirm --version "$version" "$tool" ;;
|
||||
latest) cargo binstall --force --secure --no-confirm "${tool}" ;;
|
||||
*) cargo binstall --force --secure --no-confirm --version "${version}" "${tool}" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -145,7 +146,7 @@ case "${OSTYPE}" in
|
||||
cygwin* | msys*) exe=".exe" ;;
|
||||
esac
|
||||
|
||||
cargo_bin="${CARGO_HOME:-"$HOME/.cargo"}/bin"
|
||||
cargo_bin="${CARGO_HOME:-"${HOME}/.cargo"}/bin"
|
||||
if [[ ! -d "${cargo_bin}" ]]; then
|
||||
cargo_bin=/usr/local/bin
|
||||
fi
|
||||
@@ -187,7 +188,7 @@ for tool in "${tools[@]}"; do
|
||||
;;
|
||||
cargo-udeps)
|
||||
# https://github.com/est31/cargo-udeps/releases
|
||||
latest_version="0.1.30"
|
||||
latest_version="0.1.32"
|
||||
repo="est31/${tool}"
|
||||
case "${version}" in
|
||||
latest) version="${latest_version}" ;;
|
||||
@@ -251,7 +252,7 @@ for tool in "${tools[@]}"; do
|
||||
;;
|
||||
protoc)
|
||||
# https://github.com/protocolbuffers/protobuf/releases
|
||||
latest_version="3.21.4"
|
||||
latest_version="3.21.5"
|
||||
repo="protocolbuffers/protobuf"
|
||||
case "${version}" in
|
||||
latest) version="${latest_version}" ;;
|
||||
@@ -387,7 +388,7 @@ for tool in "${tools[@]}"; do
|
||||
;;
|
||||
wasmtime)
|
||||
# https://github.com/bytecodealliance/wasmtime/releases
|
||||
latest_version="0.39.1"
|
||||
latest_version="0.40.0"
|
||||
repo="bytecodealliance/${tool}"
|
||||
case "${version}" in
|
||||
latest) version="${latest_version}" ;;
|
||||
|
||||
Reference in New Issue
Block a user