Compare commits

...

8 Commits

Author SHA1 Message Date
Taiki Endo
a433d87f12 Release 2.49.33 2025-03-23 11:09:04 +09:00
Taiki Endo
3ad95ecaad Update release-plz@latest to 0.3.128 2025-03-23 06:14:13 +09:00
Taiki Endo
bd8846282c tools: Update tidy.sh 2025-03-21 03:23:42 +09:00
Taiki Endo
351cce3d3a Release 2.49.32 2025-03-21 00:16:12 +09:00
Taiki Endo
706c01391c Update wasmtime@latest to 31.0.0 2025-03-21 00:13:08 +09:00
Taiki Endo
278ea84286 Release 2.49.31 2025-03-20 23:43:18 +09:00
Taiki Endo
793ff2357e Update cargo-hack@latest to 0.6.36 2025-03-20 23:41:49 +09:00
Taiki Endo
9b4744f4fe Update cargo-binstall@latest to 1.12.2 2025-03-20 23:41:49 +09:00
7 changed files with 142 additions and 49 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,5 @@
target
Cargo.lock
.venv
tmp
# For platform and editor specific settings, it is recommended to add to

View File

@@ -10,6 +10,20 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.49.33] - 2025-03-23
- Update `release-plz@latest` to 0.3.128.
## [2.49.32] - 2025-03-20
- Update `wasmtime@latest` to 31.0.0.
## [2.49.31] - 2025-03-20
- Update `cargo-hack@latest` to 0.6.36.
- Update `cargo-binstall@latest` to 1.12.2.
## [2.49.30] - 2025-03-18
- Update `dprint@latest` to 0.49.1.
@@ -3706,7 +3720,10 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.49.30...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.49.33...HEAD
[2.49.33]: https://github.com/taiki-e/install-action/compare/v2.49.32...v2.49.33
[2.49.32]: https://github.com/taiki-e/install-action/compare/v2.49.31...v2.49.32
[2.49.31]: https://github.com/taiki-e/install-action/compare/v2.49.30...v2.49.31
[2.49.30]: https://github.com/taiki-e/install-action/compare/v2.49.29...v2.49.30
[2.49.29]: https://github.com/taiki-e/install-action/compare/v2.49.28...v2.49.29
[2.49.28]: https://github.com/taiki-e/install-action/compare/v2.49.27...v2.49.28

View File

@@ -22,32 +22,32 @@
},
"license_markdown": "[GPL-3.0](https://github.com/cargo-bins/cargo-binstall/blob/HEAD/crates/bin/LICENSE)",
"latest": {
"version": "1.12.1"
"version": "1.12.2"
},
"1.12.1": {
"1.12.2": {
"x86_64_linux_musl": {
"etag": "0x8DD638ABBE43B19",
"checksum": "ec43c51c0fa4f32211b37bdac3501fc67d92b58ae09ef11af57dd84ac9fbfa28"
"etag": "0x8DD67BA42B477F4",
"checksum": "a99594659dc5974da6ce0fa8c44f1ec7f8674a68628e3fc66ea8c6f3098927b5"
},
"x86_64_macos": {
"etag": "0x8DD638A7A26CB95",
"checksum": "5cb38fa813e01fd5c381170827d06600ae46f78910c0a215324a7f409c2c351d"
"etag": "0x8DD67BA17754CB4",
"checksum": "73b657f5d61ffc9a820bcd8eaa04652026e25d9c252971794a44e7e227d0d795"
},
"x86_64_windows": {
"etag": "0x8DD638BEAD1F245",
"checksum": "6a47a306d7cdfb52dccadd14af5b527bd219c5b2c20cfcfc366c3fb3bc2eac53"
"etag": "0x8DD67BB3DBFA334",
"checksum": "1a76c55e82ef1ba3dcb174b3c47910d7cd4c16e3557c7c3b7414b5ad1559fe42"
},
"aarch64_linux_musl": {
"etag": "0x8DD638A98C0B9A4",
"checksum": "5d46063876e05eacff50dab7b33bf7630e6d759830d0eee0ae2e568e59d2fc20"
"etag": "0x8DD67B9FCB84A33",
"checksum": "674f5c3d11f6501c5bbebfbef5cf959e1b3cf30fc77f0af9922ea16416d213af"
},
"aarch64_macos": {
"etag": "0x8DD638AC2D75E6E",
"checksum": "baac0e3379b53924a7c6eb69641ea0f67d9a7ec7bcc70b4ce544218b7d482d44"
"etag": "0x8DD67BA216CA53F",
"checksum": "f3c90a36a6d934a3f73ba57e3620f9a5ec5b5da4da976094e2c69f83fe061ece"
},
"aarch64_windows": {
"etag": "0x8DD638B82F5EE86",
"checksum": "269c3dcdc21ef1c18213bb2a4f22f6554653de8bd5451f59e6feea2468819644"
"etag": "0x8DD67BB4F786A2E",
"checksum": "f98653d5f0b18a0a27febc6cba0e13b027f944efabc8511b292138e0b03f7608"
}
}
}

View File

@@ -3,10 +3,42 @@
"template": null,
"license_markdown": "[Apache-2.0](https://github.com/taiki-e/cargo-hack/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/cargo-hack/blob/main/LICENSE-MIT)",
"latest": {
"version": "0.6.35"
"version": "0.6.36"
},
"0.6": {
"version": "0.6.35"
"version": "0.6.36"
},
"0.6.36": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.36/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"etag": "0x8DD67BBD1B2F66C",
"checksum": "73af85f4bd5ae23420a9e21d345b68187f5983c3e164429ccc95b39d05b392ce"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.36/cargo-hack-x86_64-apple-darwin.tar.gz",
"etag": "0x8DD67BC00D8DF25",
"checksum": "2bc50a0ec53897d49579eb36502e070c8090b4047ec0f2751231d13d8e959ad9"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.36/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"etag": "0x8DD67BC0584F0B1",
"checksum": "c79e8da6e54a1b99d50e2a7496b0b13da5bddb81924e2510b5f493337f36af4b"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.36/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"etag": "0x8DD67BBC439783A",
"checksum": "27373f9c05dd92b5cd1eaa8804db99c79db97df4a62029a4fa2394fe07122df9"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.36/cargo-hack-aarch64-apple-darwin.tar.gz",
"etag": "0x8DD67BBD4B8FE9A",
"checksum": "19a03adc32ffb9777ecb8721789e49b538b659d006f08bcc54b2b174fea2c124"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.36/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"etag": "0x8DD67BC06A60B66",
"checksum": "f59bfb732cb5b74377faff691c2cb541764145ee1c9251b7725c7668f2223349"
}
},
"0.6.35": {
"x86_64_linux_musl": {

View File

@@ -22,10 +22,36 @@
},
"license_markdown": "[MIT](https://github.com/release-plz/release-plz/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/release-plz/release-plz/blob/main/LICENSE-APACHE)",
"latest": {
"version": "0.3.127"
"version": "0.3.128"
},
"0.3": {
"version": "0.3.127"
"version": "0.3.128"
},
"0.3.128": {
"x86_64_linux_musl": {
"etag": "0x8DD6972CC645C5E",
"checksum": "eceb9537fc55ffb707cb38d42cbaa7e890d1a24b83aea59659c8698df33af31c"
},
"x86_64_macos": {
"etag": "0x8DD6973B42E5423",
"checksum": "8875611a42ebeee4ef9376475af996e11882cc8c517a2d2fc480557646683f7b"
},
"x86_64_windows": {
"etag": "0x8DD697378179597",
"checksum": "357c162377948441e4c30357eab074a28034b0ee5fe086af80311d321e1d567d"
},
"aarch64_linux_musl": {
"etag": "0x8DD6972CC8CEC7B",
"checksum": "13ac75861baf46cf5b05fd931e31e19700d1136ecc7ad9117d4cb1aa6b14d0b5"
},
"aarch64_macos": {
"etag": "0x8DD697342765547",
"checksum": "21aa1fef51786aeea6e6fc0ee0e5cc12c2320a5702e42abe95fd9eaeb8cdd50d"
},
"aarch64_windows": {
"etag": "0x8DD6973C97CE439",
"checksum": "7efbfddba75041b770d72ed7c8a79db2243d65c97f5944d9f2e44fc0f4bdccbe"
}
},
"0.3.127": {
"x86_64_linux_musl": {

View File

@@ -28,7 +28,39 @@
},
"license_markdown": "[Apache-2.0 WITH LLVM-exception](https://github.com/bytecodealliance/wasmtime/blob/main/LICENSE)",
"latest": {
"version": "30.0.2"
"version": "31.0.0"
},
"31": {
"version": "31.0.0"
},
"31.0": {
"version": "31.0.0"
},
"31.0.0": {
"x86_64_linux_gnu": {
"etag": "0x8DD67BF09F113DC",
"checksum": "ba5f2aebd96d9d81bdb98e18ba6b98b9519c27256d37b1fce283dae00eef543e"
},
"x86_64_macos": {
"etag": "0x8DD67BF0AF419E6",
"checksum": "a85dc1ac5063464c83a1994e4199ee5c2fd65784f0fba288fb9fa47af5b3601b"
},
"x86_64_windows": {
"etag": "0x8DD67BF0F65D465",
"checksum": "cfc5a7b1fde73d808791dd266e9f36731dd68583bec5b2380c7cd9bc515b2470"
},
"aarch64_linux_gnu": {
"etag": "0x8DD67BEFC04941D",
"checksum": "efcef82b5f4d3a0c78bf14cd8827cef3d3be191c7ff05c5f6949386ff23802cf"
},
"aarch64_macos": {
"etag": "0x8DD67BEFD0CC47C",
"checksum": "921edbf7217de0ee26d303c2013fc9050124b11c81093f5d96a096f504029b07"
},
"aarch64_windows": {
"etag": "0x8DD67BEFF7175FE",
"checksum": "b2ff06d8600f16e852795acc03beacf09282e52fbdbc56088b7026a3f82d33b0"
}
},
"30": {
"version": "30.0.2"

View File

@@ -14,7 +14,7 @@ cd -- "$(dirname -- "$0")"/..
# - git 1.8+
# - jq 1.6+
# - npm (node 18+)
# - python 3.5.3+
# - python 3.6+ and pipx
# - shfmt
# - shellcheck
# - cargo, rustfmt (if Rust code exists)
@@ -69,7 +69,11 @@ check_diff() {
should_fail=1
fi
else
if ! git --no-pager diff --exit-code "$@" &>/dev/null; then
local res
res=$(git --no-pager diff --exit-code --name-only "$@" || true)
if [[ -n "${res}" ]]; then
warn "please commit changes made by formatter/generator if exists on the following files"
print_fenced "${res}"$'\n'
should_fail=1
fi
fi
@@ -119,15 +123,6 @@ check_hidden() {
sed_rhs_escape() {
sed 's/\\/\\\\/g; s/\&/\\\&/g; s/\//\\\//g' <<<"$1"
}
venv_install_yq() {
if [[ ! -e "${venv_bin}/yq${exe}" ]]; then
if [[ ! -d .venv ]]; then
"python${py_suffix}" -m venv .venv >&2
fi
info "installing yq to .venv using pip${py_suffix}"
"${venv_bin}/pip${py_suffix}${exe}" install yq >&2
fi
}
if [[ $# -gt 0 ]]; then
cat <<EOF
@@ -137,19 +132,15 @@ EOF
exit 1
fi
exe=''
py_suffix=''
if type -P python3 >/dev/null; then
py_suffix=3
fi
venv_bin=.venv/bin
yq() {
venv_install_yq
"${venv_bin}/yq${exe}" "$@"
pipx run yq "$@"
}
tomlq() {
venv_install_yq
"${venv_bin}/tomlq${exe}" "$@"
pipx run --spec yq tomlq "$@"
}
case "$(uname -s)" in
Linux)
@@ -187,8 +178,6 @@ case "$(uname -s)" in
;;
MINGW* | MSYS* | CYGWIN* | Windows_NT)
ostype=windows
exe=.exe
venv_bin=.venv/Scripts
if type -P jq >/dev/null; then
# https://github.com/jqlang/jq/issues/1854
_tmp=$(jq -r .a <<<'{}')
@@ -200,12 +189,10 @@ case "$(uname -s)" in
jq() { command jq "$@" | tr -d '\r'; }
fi
yq() {
venv_install_yq
"${venv_bin}/yq${exe}" "$@" | tr -d '\r'
pipx run yq "$@" | tr -d '\r'
}
tomlq() {
venv_install_yq
"${venv_bin}/tomlq${exe}" "$@" | tr -d '\r'
pipx run --spec yq tomlq "$@" | tr -d '\r'
}
fi
fi
@@ -219,7 +206,7 @@ exclude_from_ls_files=()
# - `git submodule status` lists submodules. Use sed to remove the first character indicates status ( |+|-).
# - `git ls-files --deleted` lists removed files.
while IFS=$'\n' read -r line; do exclude_from_ls_files+=("${line}"); done < <({
find . \! \( -name .git -prune \) \! \( -name target -prune \) \! \( -name .venv -prune \) \! \( -name tmp -prune \) -type l | cut -c3-
find . \! \( -name .git -prune \) \! \( -name target -prune \) \! \( -name tmp -prune \) -type l | cut -c3-
git submodule status | sed 's/^.//' | cut -d' ' -f2
git ls-files --deleted
} | LC_ALL=C sort -u)
@@ -242,7 +229,7 @@ if [[ -n "$(ls_files '*.rs')" ]]; then
info "checking Rust code style"
check_config .rustfmt.toml "; consider adding with reference to https://github.com/taiki-e/cargo-hack/blob/HEAD/.rustfmt.toml"
check_config .clippy.toml "; consider adding with reference to https://github.com/taiki-e/cargo-hack/blob/HEAD/.clippy.toml"
if check_install cargo jq python3; then
if check_install cargo jq python3 pipx; then
# `cargo fmt` cannot recognize files not included in the current workspace and modules
# defined inside macros, so run rustfmt directly.
# We need to use nightly rustfmt because we use the unstable formatting options of rustfmt.
@@ -597,7 +584,7 @@ if [[ -n "${res}" ]]; then
print_fenced "${res}"$'\n'
fi
# TODO: chmod|chown
res=$({ grep -En '(^|[^0-9A-Za-z\."'\''-])(basename|cat|cd|cp|dirname|ln|ls|mkdir|mv|pushd|rm|rmdir|tee|touch)( +-[0-9A-Za-z]+)* +[^<>\|-]' "${bash_files[@]}" || true; } | { grep -Ev '^[^ ]+: *(#|//)' || true; } | LC_ALL=C sort)
res=$({ grep -En '(^|[^0-9A-Za-z\."'\''-])(basename|cat|cd|cp|dirname|ln|ls|mkdir|mv|pushd|rm|rmdir|tee|touch|kill|trap)( +-[0-9A-Za-z]+)* +[^<>\|-]' "${bash_files[@]}" || true; } | { grep -Ev '^[^ ]+: *(#|//)' || true; } | LC_ALL=C sort)
if [[ -n "${res}" ]]; then
error "use \`--\` before path(s): see https://github.com/koalaman/shellcheck/issues/2707 / https://github.com/koalaman/shellcheck/issues/2612 / https://github.com/koalaman/shellcheck/issues/2305 / https://github.com/koalaman/shellcheck/issues/2157 / https://github.com/koalaman/shellcheck/issues/2121 / https://github.com/koalaman/shellcheck/issues/314 for more"
print_fenced "${res}"$'\n'
@@ -800,7 +787,7 @@ elif check_install shellcheck; then
# Exclude SC2096 due to the way the temporary script is created.
shellcheck_exclude=SC2086,SC2096,SC2129
info "running \`shellcheck --exclude ${shellcheck_exclude}\` for scripts in .github/workflows/*.yml and **/action.yml"
if check_install jq python3; then
if check_install jq python3 pipx; then
shellcheck_for_gha() {
local text=$1
local shell=$2
@@ -968,7 +955,7 @@ fi
if [[ -f .cspell.json ]]; then
info "spell checking"
project_dictionary=.github/.cspell/project-dictionary.txt
if check_install npm jq python3; then
if check_install npm jq python3 pipx; then
has_rust=''
if [[ -n "$(ls_files '*Cargo.toml')" ]]; then
has_rust=1