Compare commits

...

17 Commits

Author SHA1 Message Date
Taiki Endo
cd5df4de2e Release 2.32.2 2024-04-02 19:57:57 +09:00
Taiki Endo
0d57f95239 Update changelog 2024-04-02 19:57:48 +09:00
Taiki Endo
89426e2a92 Update cargo-hack@latest to 0.6.27 2024-04-02 19:55:44 +09:00
Taiki Endo
256a485480 Update typos@latest to 1.20.1 2024-04-02 09:25:20 +09:00
Taiki Endo
0f1188a80f Update typos@latest to 1.20.0 2024-04-02 06:10:02 +09:00
Taiki Endo
d475def002 Release 2.32.1 2024-04-01 22:59:12 +09:00
Taiki Endo
3361085b85 Update cargo-hack@latest to 0.6.26 2024-04-01 22:56:15 +09:00
Taiki Endo
599507f802 tools: Tweak manifest.sh 2024-04-01 22:41:43 +09:00
Taiki Endo
b43c846230 Release 2.32.0 2024-04-01 09:50:22 +09:00
Taiki Endo
de042d01ea Update changelog 2024-04-01 09:49:35 +09:00
Taiki Endo
a4e2a0d24a Fix version output 2024-04-01 09:47:20 +09:00
Taiki Endo
eb26f9fb20 tools: Update tidy.sh 2024-04-01 09:46:48 +09:00
Taiki Endo
72e406cf87 Update cargo-hack@latest to 0.6.24 2024-04-01 09:41:25 +09:00
John Vandenberg
ee2b189d46 Add editorconfig-checker (#430) 2024-04-01 09:01:27 +09:00
John Vandenberg
ee185407dc Add hyperfine (#425) 2024-03-31 14:13:05 +09:00
Taiki Endo
b23c83949c Release 2.31.3 2024-03-31 00:20:37 +09:00
Taiki Endo
16c8e39687 Update git-cliff@latest to 2.2.0 2024-03-31 00:11:06 +09:00
13 changed files with 647 additions and 20 deletions

View File

@@ -10,6 +10,28 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.32.2] - 2024-04-02
- Update `cargo-hack@latest` to 0.6.27.
- Update `typos@latest` to 1.20.1.
## [2.32.1] - 2024-04-01
- Update `cargo-hack@latest` to 0.6.26.
## [2.32.0] - 2024-04-01
- Support `hyperfine`. ([#425](https://github.com/taiki-e/install-action/pull/425), thanks @jayvdb)
- Support `editorconfig-checker`. ([#430](https://github.com/taiki-e/install-action/pull/430), thanks @jayvdb)
- Update `cargo-hack@latest` to 0.6.24.
## [2.31.3] - 2024-03-30
- Update `git-cliff@latest` to 2.2.0.
## [2.31.2] - 2024-03-28
- Fix `cargo-spellcheck` installation bug. ([#428](https://github.com/taiki-e/install-action/pull/428))
@@ -1967,7 +1989,11 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.31.2...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.32.2...HEAD
[2.32.2]: https://github.com/taiki-e/install-action/compare/v2.32.1...v2.32.2
[2.32.1]: https://github.com/taiki-e/install-action/compare/v2.32.0...v2.32.1
[2.32.0]: https://github.com/taiki-e/install-action/compare/v2.31.3...v2.32.0
[2.31.3]: https://github.com/taiki-e/install-action/compare/v2.31.2...v2.31.3
[2.31.2]: https://github.com/taiki-e/install-action/compare/v2.31.1...v2.31.2
[2.31.1]: https://github.com/taiki-e/install-action/compare/v2.31.0...v2.31.1
[2.31.0]: https://github.com/taiki-e/install-action/compare/v2.30.0...v2.31.0

View File

@@ -105,6 +105,7 @@ https://spdx.org/licenses
| [**dprint**](https://github.com/dprint/dprint) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/dprint/dprint/releases) | Linux, macOS, Windows | [MIT](https://github.com/dprint/dprint/blob/HEAD/LICENSE) |
| [**git-cliff**](https://github.com/orhun/git-cliff) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/orhun/git-cliff/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/orhun/git-cliff/blob/HEAD/LICENSE-APACHE) OR [MIT](https://github.com/orhun/git-cliff/blob/HEAD/LICENSE-MIT) |
| [**grcov**](https://github.com/mozilla/grcov) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/mozilla/grcov/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/mozilla/grcov/blob/HEAD/LICENSE-MPL-2.0) |
| [**hyperfine**](https://github.com/sharkdp/hyperfine) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/sharkdp/hyperfine/releases) | Linux, macOS, Windows | [MIT](https://github.com/sharkdp/hyperfine/blob/HEAD/LICENSE-MIT) or [Apache-2.0](https://github.com/sharkdp/hyperfine/blob/HEAD/LICENSE-APACHE) |
| [**just**](https://github.com/casey/just) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/casey/just/releases) | Linux, macOS, Windows | [CC0-1.0](https://github.com/casey/just/blob/HEAD/LICENSE) |
| [**mdbook-linkcheck**](https://github.com/Michael-F-Bryan/mdbook-linkcheck) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases) | Linux, macOS, Windows | [MIT](https://github.com/Michael-F-Bryan/mdbook-linkcheck/blob/HEAD/LICENSE) |
| [**mdbook**](https://github.com/rust-lang/mdBook) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rust-lang/mdBook/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/rust-lang/mdBook/blob/HEAD/LICENSE) |

12
main.sh
View File

@@ -68,7 +68,9 @@ download_and_extract() {
local tmp
case "${tool}" in
# xbuild's binary name is "x", as opposed to the usual crate name
xbuild) installed_bin=("${bin_dir}/x") ;;
xbuild) installed_bin=("${bin_dir}/x${exe}") ;;
# editorconfig-checker's binary name is renamed below
editorconfig-checker) installed_bin=("${bin_dir}/${tool}${exe}") ;;
*)
for tmp in "${bin_in_archive[@]}"; do
installed_bin+=("${bin_dir}/$(basename "${tmp}")")
@@ -129,7 +131,10 @@ download_and_extract() {
tar_args+=("tmp")
tar "${tar_args[@]}"
for tmp in "${bin_in_archive[@]}"; do
mv "${tmp}" "${bin_dir}/"
case "${tool}" in
editorconfig-checker) mv "${tmp}" "${bin_dir}/${tool}${exe}" ;;
*) mv "${tmp}" "${bin_dir}/" ;;
esac
done
else
case "${url}" in
@@ -702,7 +707,8 @@ for tool in "${tools[@]}"; do
case "${tool_bin_stem}" in
# biome up to 1.2.2 exits with 1 on both --version and --help flags.
# cargo-machete up to 0.6.0 does not support --version flag.
biome | cargo-machete) rx "${tool_bin_stem}" --version || true ;;
biome) rx "${tool_bin_stem}" --version || true ;;
cargo-machete) rx "${tool_bin_stem}" "${tool_bin_stem#cargo-}" --version || true ;;
# these packages support neither --version nor --help flag.
cargo-careful | wasm-bindgen-test-runner) ;;
# wasm2es6js does not support --version flag and --help flag doesn't contains version info.

View File

@@ -2,10 +2,114 @@
"rust_crate": "cargo-hack",
"template": null,
"latest": {
"version": "0.6.23"
"version": "0.6.27"
},
"0.6": {
"version": "0.6.23"
"version": "0.6.27"
},
"0.6.27": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.27/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "7713f063bdb52abf23e8a121664bba62144c54068e746a7c5904c9f396884db2"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.27/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "75e807f5c763a3d7a44dab7e13158299f9b9adf14247e41ded97e45ca38b799d"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.27/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "695b1a6bc887e07a52710670bbb13237276f6898446bfe2104b38df690f2d556"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.27/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "904aff3154e3a981e138935f44296c007e84f464cc3da1fc96ee0a11b0511631"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.27/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "3a52aaa620296e0213e7e3fdd95e70f2c5677882c74a6c0a0ac8b8bae604e65f"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.27/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "aedeb5aeb5bc7d01ce3f854dbd5bf6e5230c0c44ffd5d527a9ee85a60ccaafdf"
}
},
"0.6.26": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.26/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "722bc8269e30ff75cfa260a3ba3a94f46fd3ad8de47a158fa2bde1d07ba3eb53"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.26/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "ea2b014cf60d6fcf3d85d277fe88a7f4ec1db7238077463f56f8093acaefccaf"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.26/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "9497dcecb1f09ca2f2f0a6a2c91a1152ba56c386981315461edeba4914da6433"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.26/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "77e63cf8c52718c12a0a46749464375c992ec2b7d524f8723a32623560612fce"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.26/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "8e896ca939c669d951acf98f2493f8a8b7a7beb3e808cb5af764c8f66a1c58e8"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.26/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "9084bad2063b00d96237582b8623c4e13ed476585aa8461defe751fc134c77ea"
}
},
"0.6.25": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.25/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "e90bdb19108c308af9be1104d93209ce03aa6d91f5c54b5678682d970ba1660a"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.25/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "59636ba9a2452ebf030c654718392c950f4d0478a87c5b70a2a0cb55b6d283b5"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.25/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "001102a8b6965dad68be41db1058b7e7abad4d8e9dd375912ae43ccebca7696c"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.25/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "1307ce8db78fdf7616fb025893348eaf7e9ed77a3a3fe3fd348076a41a18f570"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.25/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "29488347b36ee0a2d48b2d32d7b5b24addcdb2f42a52784de41de6353c62fd43"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.25/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "5f5bbe4a544e7b923365db6c3af05bdeed865952b6cc15c9ec30b7487b4cb52d"
}
},
"0.6.24": {
"x86_64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.24/cargo-hack-x86_64-unknown-linux-musl.tar.gz",
"checksum": "82a4a2cc134b5712df98fe36bb3b66652094f7e7c815c3559fc249671c5f0eca"
},
"x86_64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.24/cargo-hack-x86_64-apple-darwin.tar.gz",
"checksum": "9a95d8613269ff9543bdc1f5462518375aec4a3602c3283b3e6b1ff30c43fb2a"
},
"x86_64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.24/cargo-hack-x86_64-pc-windows-msvc.tar.gz",
"checksum": "12da431e0c2775bf7b187c26d14fb4e8af7d0e38887635bdbe5d458c131a7717"
},
"aarch64_linux_musl": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.24/cargo-hack-aarch64-unknown-linux-musl.tar.gz",
"checksum": "73e1e998a31a96ec692044f2fc7291d6a0f5e4259515b09f25541f1e497b12b8"
},
"aarch64_macos": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.24/cargo-hack-aarch64-apple-darwin.tar.gz",
"checksum": "e4fccd7a5eadc80c536dcfcadb608cbd0682bfd6ebe5dfe7580e781106213e54"
},
"aarch64_windows": {
"url": "https://github.com/taiki-e/cargo-hack/releases/download/v0.6.24/cargo-hack-aarch64-pc-windows-msvc.tar.gz",
"checksum": "dcaf75eb059939fa8c8f942bba25b706a991af249672d6155cbae8dd15b70bfe"
}
},
"0.6.23": {
"x86_64_linux_musl": {

58
manifests/editorconfig-checker.json generated Normal file
View File

@@ -0,0 +1,58 @@
{
"rust_crate": null,
"template": {
"x86_64_linux_gnu": {
"url": "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${version}/ec-linux-amd64.tar.gz",
"bin": "bin/ec-linux-amd64"
},
"x86_64_macos": {
"url": "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${version}/ec-darwin-amd64.tar.gz",
"bin": "bin/ec-darwin-amd64"
},
"x86_64_windows": {
"url": "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${version}/ec-windows-amd64.exe.tar.gz",
"bin": "bin/ec-windows-amd64.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${version}/ec-linux-arm64.tar.gz",
"bin": "bin/ec-linux-arm64"
},
"aarch64_macos": {
"url": "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${version}/ec-darwin-arm64.tar.gz",
"bin": "bin/ec-darwin-arm64"
},
"aarch64_windows": {
"url": "https://github.com/editorconfig-checker/editorconfig-checker/releases/download/v${version}/ec-windows-arm64.exe.tar.gz",
"bin": "bin/ec-windows-arm64.exe"
}
},
"latest": {
"version": "3.0.0"
},
"3": {
"version": "3.0.0"
},
"3.0": {
"version": "3.0.0"
},
"3.0.0": {
"x86_64_linux_gnu": {
"checksum": "8e2f3c5fa4891542535185a4859c5f92832bc11821eb03a081bc6bd87af5a829"
},
"x86_64_macos": {
"checksum": "d331806227c1a1ed96ddd34eceac51bd1cef0121f78bdb09d509771f6e5aec79"
},
"x86_64_windows": {
"checksum": "ff171ef63361bbd783622ba778a83e6fe5d6615e8b9e9e9c2f2c177e89dba499"
},
"aarch64_linux_gnu": {
"checksum": "edf1d12ba1e6ff70090f063e7937081b49ba6007cd02e45f8329bbf965ed609e"
},
"aarch64_macos": {
"checksum": "35324d5914d147cb51859e49c48909cef22ae448fca407b9d39f95dcc77be109"
},
"aarch64_windows": {
"checksum": "40b382a225a345e28f575010b637a372eb004ba3f1544341df0fbc265d183ff6"
}
}
}

View File

@@ -27,10 +27,33 @@
}
},
"latest": {
"version": "2.1.2"
"version": "2.2.0"
},
"2": {
"version": "2.1.2"
"version": "2.2.0"
},
"2.2": {
"version": "2.2.0"
},
"2.2.0": {
"x86_64_linux_musl": {
"checksum": "5f4c75d60fe2a8160ad5d4f6bd9fa8d7c780272e1cfae0753c83ac20101e898f"
},
"x86_64_macos": {
"checksum": "26d1810e470735a551998f727b87728d9de1b993c14666a018e1f7ba7f5c52da"
},
"x86_64_windows": {
"checksum": "85f55fe0cdcd7de5410d82cb7417051cfe2eb4051ae8b9bb907ee6ce1329efab"
},
"aarch64_linux_musl": {
"checksum": "66697436c1f6581458c95ef5187d725a34f6a1fd94e2a46306f85c92a27f7f8c"
},
"aarch64_macos": {
"checksum": "395d50f2657a0c5425e5c24672f9c5247ec36c57c08f485d2b0050dc81270b22"
},
"aarch64_windows": {
"checksum": "11ed1767f0384ed2dc7b37b3f8842ff9a5385fe71ca1811a3615f77b92e2f45f"
}
},
"2.1": {
"version": "2.1.2"

319
manifests/hyperfine.json generated Normal file
View File

@@ -0,0 +1,319 @@
{
"rust_crate": "hyperfine",
"template": {
"x86_64_linux_musl": {
"url": "https://github.com/sharkdp/hyperfine/releases/download/v${version}/hyperfine-v${version}-x86_64-unknown-linux-musl.tar.gz",
"bin": "hyperfine-v${version}-x86_64-unknown-linux-musl/hyperfine"
},
"x86_64_macos": {
"url": "https://github.com/sharkdp/hyperfine/releases/download/v${version}/hyperfine-v${version}-x86_64-apple-darwin.tar.gz",
"bin": "hyperfine-v${version}-x86_64-apple-darwin/hyperfine"
},
"x86_64_windows": {
"url": "https://github.com/sharkdp/hyperfine/releases/download/v${version}/hyperfine-v${version}-x86_64-pc-windows-msvc.zip",
"bin": "hyperfine-v${version}-x86_64-pc-windows-msvc/hyperfine.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/sharkdp/hyperfine/releases/download/v${version}/hyperfine-v${version}-aarch64-unknown-linux-gnu.tar.gz",
"bin": "hyperfine-v${version}-aarch64-unknown-linux-gnu/hyperfine"
}
},
"latest": {
"version": "1.18.0"
},
"1": {
"version": "1.18.0"
},
"1.18": {
"version": "1.18.0"
},
"1.18.0": {
"x86_64_linux_musl": {
"checksum": "ef3855ad6a1bf97055a90dc3dfc5d4a48494cb80344027db932a96341d415193"
},
"x86_64_macos": {
"checksum": "f421263f160f4b4967d0a1420b06a48cb60e429c610096f99bb433dd719685c6"
},
"x86_64_windows": {
"checksum": "b43c22a9eb5f3b6e85bcf480e6adb986b2b0c27f52db762f017893bb1ad52794"
},
"aarch64_linux_gnu": {
"checksum": "1174db3a55247a89d8f6161101e15455a2ebdca6948d42e9bc50b78c1d771e4a"
}
},
"1.17": {
"version": "1.17.0"
},
"1.17.0": {
"x86_64_linux_musl": {
"checksum": "563de47d843810de501e3e6bfcb4571a4ff957eab811c2af87be23d1c599ae47"
},
"x86_64_macos": {
"checksum": "5dfc0b1f2791d4b0b18a0629d0ed85717539bdc3a13dfb1bd2a293f203a92d21"
},
"x86_64_windows": {
"checksum": "496a4ebad0f461e81aafd38bedc339442a1c569c7256ad43cecbff1617cafaa4"
},
"aarch64_linux_gnu": {
"checksum": "0c3f3c8f572ae6817a6f95f1983cd285ec3065e4f1b39d7cfc3dae9f43fc1fd2"
}
},
"1.16": {
"version": "1.16.1"
},
"1.16.1": {
"x86_64_linux_musl": {
"checksum": "f5d26e69fd17200f6b32debe0603b0ff8b1c0cdf2f25463be6da9311f6910613"
},
"x86_64_macos": {
"checksum": "f19d22147b5307138524eed5eff2265a116e5ecbaab886bbe0eb02e57cbb3f2c"
},
"x86_64_windows": {
"checksum": "12f5ddcc4fd587e3c1084e729a5d198bf6eacef5614a4cdfd557475ef5ef9e66"
},
"aarch64_linux_gnu": {
"checksum": "1f441fb7ea2b2f9f38230e56840f801d1b55e38b1f1c164ed24101b4cea740bf"
}
},
"1.16.0": {
"x86_64_linux_musl": {
"checksum": "99e92dce7faded2e0e931e360c26ac50ec945d7d9bd7a679c341660e8201f71b"
},
"x86_64_macos": {
"checksum": "b4964645b56c2b99bc13318038ff1907260523b4131d5b44c83e73dc3dc23150"
},
"x86_64_windows": {
"checksum": "299b68922f2ddaf8ff8d9a3006fb56d42ce978c71d188bf2b7f2bc690346c3eb"
},
"aarch64_linux_gnu": {
"checksum": "a3237ed292edd867fdba4284ad86df619147ca1efabf9e16a2ddfc1bb244555d"
}
},
"1.15": {
"version": "1.15.0"
},
"1.15.0": {
"x86_64_linux_musl": {
"checksum": "38859f8b7cb61f2d76de888eae36c78fbfcbf791fb0ef878ed2dab2a5e91bfb0"
},
"x86_64_macos": {
"checksum": "a79b6b00c4740d62fe4b2c1eed082db1f4eea07102a7c731135d34815f6d924d"
},
"x86_64_windows": {
"checksum": "ebfefb5ad2bb183152e0b0e929ec8002e18e31e557d40264fa4f0488afecc992"
},
"aarch64_linux_gnu": {
"checksum": "cdab3eea4da4108694855b95cd24fa45a4978eba7b009863c18b4c5d026f6793"
}
},
"1.14": {
"version": "1.14.0"
},
"1.14.0": {
"x86_64_linux_musl": {
"checksum": "9d3c53e7da84b41896d4208b722765742af1169a4dab9788321f8597ea159010"
},
"x86_64_macos": {
"checksum": "b6aee0b7c13c21b72a04aef6ca9f5cba9186d8114cae3dbd2f0d1fcb4dca0af7"
},
"x86_64_windows": {
"checksum": "0e38512f7c731044629b5bb9f78f3d348a5906be43548c65b3c459333964dc0a"
},
"aarch64_linux_gnu": {
"checksum": "2f7b88181370e8e6d6039fa549ac32ec8c62fa790db38ad99f4964f3d3e1dee4"
}
},
"1.13": {
"version": "1.13.0"
},
"1.13.0": {
"x86_64_linux_musl": {
"checksum": "d22bc7a845195e7f53268b43bb91455e6cb0a7e6a3fc7f89cd307f7261bfc985"
},
"x86_64_macos": {
"checksum": "7050e26f77794b3a283f90ba3a47a340a57decf90b4ebf8fab1d7fde1b4d0e51"
},
"x86_64_windows": {
"checksum": "555af098497afe86e8284da95cec50768f865c83b8a26ab204c61088ff8898fe"
},
"aarch64_linux_gnu": {
"checksum": "942b4eb9bea5b3a223870337c46d759d7945e6db12c803abfcfc20255ba99bee"
}
},
"1.12": {
"version": "1.12.0"
},
"1.12.0": {
"x86_64_linux_musl": {
"checksum": "b66e7a55fc1b7fd1f6443861f65bde87a4794c4721dee5e11dc0294f27116efc"
},
"x86_64_macos": {
"checksum": "fa1c2a80ac1325682c300a772ac80b6374b1e0c2266a6edaa7fd7363be4a8180"
},
"x86_64_windows": {
"checksum": "ae92a684d0f72c209eab8fe320cfea877383605a7ed18d72e3096b938c28be4b"
},
"aarch64_linux_gnu": {
"checksum": "791f92fbf7c94efea520901ce8219e3dc63beb9b54aa07664a72ffbe317c1b35"
}
},
"1.11": {
"version": "1.11.0"
},
"1.11.0": {
"x86_64_linux_musl": {
"checksum": "0e7a109e99fe34e9dde0f86597fe0a59bc756cb280d0e191d30acdd1226f70c1"
},
"x86_64_macos": {
"checksum": "28dcab2a94507d36870a5bc2173f609b1a9eb002ee06a45a47eb45be1c5f6a55"
},
"x86_64_windows": {
"checksum": "ebaed320d664d0a496d9f2b4953c80cff708c1571d0aa1170e0211b1ed4a7999"
}
},
"1.10": {
"version": "1.10.0"
},
"1.10.0": {
"x86_64_linux_musl": {
"checksum": "0010d9cae3a321fc1bd4400d1cb6a5098974ec5f8c808c88a2d996afbc4de0e4"
},
"x86_64_macos": {
"checksum": "8054528f1556143790debbf96171f5c74d82ca4b759bb9cbcbc5ebfb74b7c571"
},
"x86_64_windows": {
"checksum": "2f2d930ae41ce75034d0a988d44f125f58110f77decacea4a0bbb93d26c6f60e"
}
},
"1.9": {
"version": "1.9.0"
},
"1.9.0": {
"x86_64_linux_musl": {
"checksum": "9912746d62d63b224f8c4086c0ba41d15013b013256a4e7706a33030850b7f4b"
},
"x86_64_macos": {
"checksum": "d59dc8f59d52ba80b5c7f420e09af13311c9aa1f28b7b3f0c02732f490d69b1e"
},
"x86_64_windows": {
"checksum": "30fcf48a55f680a0157e1f8be7698f028ed28bbd7fdd58ec725562c6d8885b60"
}
},
"1.8": {
"version": "1.8.0"
},
"1.8.0": {
"x86_64_linux_musl": {
"checksum": "c60cb1de2921abdf4da5da70a89e690a2944f13362176288c20806fa199b3cea"
},
"x86_64_macos": {
"checksum": "429d51e3d1b42acd838d091bfe6f26179627ae976655224683b664f7551cbd8d"
},
"x86_64_windows": {
"checksum": "ebfdecd67fbd1a827bf4d5af016b9e40623df6d38524809567a1cb426de986cc"
}
},
"1.7": {
"version": "1.7.0"
},
"1.7.0": {
"x86_64_linux_musl": {
"checksum": "94102b0776cf61b39439efeb9685e8504451b8adafadaf03b0738a616b23d84c"
},
"x86_64_macos": {
"checksum": "ec5ada45adc21066404ea7bd9247ef693ef107362d76ba8c69c0bfde98ce6005"
},
"x86_64_windows": {
"checksum": "49344878a094e0998fb3e0ab808eec7754e02d4e11fac4f64b911ac2bb31026d"
}
},
"1.6": {
"version": "1.6.0"
},
"1.6.0": {
"x86_64_linux_musl": {
"checksum": "023834d68a1572156282d6354e348d2074f9abb5ace975d91cc845ced2a75d7f"
},
"x86_64_macos": {
"checksum": "757d6b59f7862f0fba0b8e8d0cddbd076bc39ce0a0f735c85f414cb9cb7f7bc6"
},
"x86_64_windows": {
"checksum": "bad7db58bdaa5b520a79617931ebb29555bd81dca93864b9761197c88de38faf"
}
},
"1.5": {
"version": "1.5.0"
},
"1.5.0": {
"x86_64_linux_musl": {
"checksum": "38d1e1efa4dfd636a9808a580b111a7baf5c60f3b160d2ce22c719c42a0bdb9c"
},
"x86_64_macos": {
"checksum": "ab638d511cde9e394cd41145191a2caefb105962635babed8e9cb3d18d465151"
},
"x86_64_windows": {
"checksum": "8e34992ef9ad8ccd12a2212982bc54b918083607d3018a19246f024d0d6bc690"
}
},
"1.4": {
"version": "1.4.0"
},
"1.4.0": {
"x86_64_linux_musl": {
"checksum": "8ff7cf913d7d85cbcafdb443b815f296ec57a50f9944d41b9788deb69616dccf"
},
"x86_64_macos": {
"checksum": "d5de1465b4121723715ce0c0e05972ede42dd55ce6f3c07763a60e4a35391212"
},
"x86_64_windows": {
"checksum": "5d993dc621f71ea3d13d0d9f48bc083d3b1cb3325e87f248aa0f58f58b0d19b4"
}
},
"1.3": {
"version": "1.3.0"
},
"1.3.0": {
"x86_64_linux_musl": {
"checksum": "6f4c3103f7d512a985c925e44ab1509c3d5c5ce02595f6f63690c3b0bfa40e5c"
},
"x86_64_macos": {
"checksum": "2145bc8f3c67492feef7be4344e2390c58af163c6fd0e3624cb7ae64e7528b0d"
},
"x86_64_windows": {
"checksum": "9821346df3c85433e87052518cd91887137480e5070fa0fb5e160ece54d69c84"
}
},
"1.2": {
"version": "1.2.0"
},
"1.2.0": {
"x86_64_linux_musl": {
"checksum": "a8048e3b43b2353ccd654c8362231abc94f213770ce3e527fbbc094d8ddd9798"
},
"x86_64_macos": {
"checksum": "c3af3b89b7da9d7d3ff8dec7bf47e62194f07eba0684be385fc74961f4b2a299"
}
},
"1.1": {
"version": "1.1.0"
},
"1.1.0": {
"x86_64_linux_musl": {
"checksum": "82d89913bae4a88fd70391cfaa9ce3a21473966ecb4ccb8c44bd5d75b449ca05"
},
"x86_64_macos": {
"checksum": "e92906bd910ca4038dbdd4c39d649ce8b777d7367ee00f1139681090860f6e18"
}
},
"1.0": {
"version": "1.0.0"
},
"1.0.0": {
"x86_64_linux_musl": {
"checksum": "6899615cab465476e6f988e8a3511e364f436e013efa1d3069e80d3c19857041"
},
"x86_64_macos": {
"checksum": "c9c1891479f2784349645fe82403158d7284713bfcc1669823bfb4b271f37ef9"
}
}
}

35
manifests/typos.json generated
View File

@@ -15,10 +15,41 @@
}
},
"latest": {
"version": "1.19.0"
"version": "1.20.1"
},
"1": {
"version": "1.19.0"
"version": "1.20.1"
},
"1.20": {
"version": "1.20.1"
},
"1.20.1": {
"x86_64_linux_musl": {
"checksum": "1796a65b930ed00c895fbf08d7e5b163649ebddbd1046cf568b8d26833059148"
},
"x86_64_macos": {
"checksum": "5d9c57f672e041312026d6bc8249e88dc8517b61b4ac15745bc164b5c4f37226"
},
"x86_64_windows": {
"checksum": "1f89912a7fd370c336f7ad0a08d637a37f2e34aa6e25c73286aaa5d09d9e48c5"
},
"aarch64_macos": {
"checksum": "3455e6f1241df06ba4c09fdd596879fc499fa882ce95319f2185f1611a218f0a"
}
},
"1.20.0": {
"x86_64_linux_musl": {
"checksum": "6b73ccf2f08d0905c84c1a10a4b7440106998f2014d87a28fcd65112c63ecffb"
},
"x86_64_macos": {
"checksum": "5c919a07d770ee4aacf3d1ff0025fe5f3ff67b58d95531c582a99f82dcb39a4d"
},
"x86_64_windows": {
"checksum": "2fa637603b752494259aa43dd22584d850d47d1dbb28fcf025e1865f0230eaf4"
},
"aarch64_macos": {
"checksum": "5ff1468178786040008f9348f5f27b31e2f5c937f2772145e09d3adc0ce14bc3"
}
},
"1.19": {
"version": "1.19.0"

View File

@@ -0,0 +1,31 @@
{
"repository": "https://github.com/editorconfig-checker/editorconfig-checker",
"tag_prefix": "v",
"version_range": ">= 3.0.0",
"platform": {
"x86_64_linux_gnu": {
"asset_name": "ec-linux-amd64.tar.gz",
"bin": "bin/ec-linux-amd64"
},
"aarch64_linux_gnu": {
"asset_name": "ec-linux-arm64.tar.gz",
"bin": "bin/ec-linux-arm64"
},
"x86_64_macos": {
"asset_name": "ec-darwin-amd64.tar.gz",
"bin": "bin/ec-darwin-amd64"
},
"aarch64_macos": {
"asset_name": "ec-darwin-arm64.tar.gz",
"bin": "bin/ec-darwin-arm64"
},
"x86_64_windows": {
"asset_name": "ec-windows-amd64${exe}.tar.gz",
"bin": "bin/ec-windows-amd64${exe}"
},
"aarch64_windows": {
"asset_name": "ec-windows-arm64${exe}.tar.gz",
"bin": "bin/ec-windows-arm64${exe}"
}
}
}

View File

@@ -0,0 +1,16 @@
{
"repository": "https://github.com/sharkdp/hyperfine",
"tag_prefix": "v",
"rust_crate": "${package}",
"asset_name": "${package}-v${version}-${rust_target}.tar.gz",
"bin": "${package}-v${version}-${rust_target}/${package}${exe}",
"version_range": ">= 1.0.0",
"platform": {
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {
"asset_name": "${package}-v${version}-${rust_target}.zip"
},
"aarch64_linux_gnu": {}
}
}

View File

@@ -26,7 +26,7 @@ fn main() -> Result<()> {
let args: Vec<_> = env::args().skip(1).collect();
if args.is_empty() || args.iter().any(|arg| arg.starts_with('-')) {
println!(
"USAGE: cargo run -p install-action-internal-codegen -r -- <PACKAGE> [VERSION_REQ]"
"USAGE: cargo run --manifest-path tools/codegen/Cargo.toml --release -- <PACKAGE> [VERSION_REQ]"
);
std::process::exit(1);
}

View File

@@ -10,11 +10,11 @@ cd "$(dirname "$0")"/..
# ./tools/manifest.sh [PACKAGE [VERSION_REQ]]
if [[ $# -gt 0 ]]; then
cargo run --release -p install-action-internal-codegen -- "$@"
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "$@"
exit 0
fi
for manifest in tools/codegen/base/*.json; do
package=$(basename "${manifest%.*}")
cargo run --release -p install-action-internal-codegen -- "${package}" latest
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "${package}" latest
done

View File

@@ -122,8 +122,9 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
echo "${new}" >"${lib}"
check_diff "${lib}"
done
# Make sure that public Rust crates don't contain executables.
failed_files=''
# Make sure that public Rust crates don't contain executables and binaries.
executables=''
binaries=''
metadata=$(cargo metadata --format-version=1 --no-deps)
has_public_crate=''
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
@@ -140,7 +141,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
has_public_crate='1'
done
if [[ -n "${has_public_crate}" ]]; then
info "checking file permissions"
info "checking public crates don't contain executables and binaries"
if [[ -f Cargo.toml ]]; then
root_manifest=$(cargo locate-project --message-format=plain --manifest-path Cargo.toml)
root_pkg=$(jq <<<"${metadata}" ".packages[] | select(.manifest_path == \"${root_manifest}\")")
@@ -167,13 +168,24 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
.* | tools/*) continue ;;
esac
if [[ -x "${p}" ]]; then
failed_files+="${p}"$'\n'
executables+="${p}"$'\n'
fi
# Use diff instead of file because file treats an empty file as a binary
# https://unix.stackexchange.com/questions/275516/is-there-a-convenient-way-to-classify-files-as-binary-or-text#answer-402870
if (diff .gitattributes "${p}" || true) | grep -q '^Binary file'; then
binaries+="${p}"$'\n'
fi
done
if [[ -n "${failed_files}" ]]; then
error "file-permissions-check failed: executable should be in tools/ directory"
if [[ -n "${executables}" ]]; then
error "file-permissions-check failed: executables are only allowed to be present in directories that are excluded from crates.io"
echo "======================================="
echo -n "${failed_files}"
echo -n "${executables}"
echo "======================================="
fi
if [[ -n "${binaries}" ]]; then
error "file-permissions-check failed: binaries are only allowed to be present in directories that are excluded from crates.io"
echo "======================================="
echo -n "${binaries}"
echo "======================================="
fi
fi