Compare commits

...

7 Commits

Author SHA1 Message Date
Taiki Endo
fe065954f6 Release 2.47.17 2025-01-19 14:09:43 +09:00
Taiki Endo
aaa64a3351 Update cargo-audit@latest to 0.21.1 2025-01-19 13:13:08 +09:00
Taiki Endo
f99317473f Release 2.47.16 2025-01-19 03:16:29 +09:00
Taiki Endo
3523902f5a Update cargo-make@latest to 0.37.24 2025-01-19 03:15:07 +09:00
Taiki Endo
e6e3706b36 Update readme 2025-01-17 16:45:12 +09:00
Taiki Endo
9469185794 Format shell scripts with indent_size = 2 to match scripts in CI config 2025-01-17 16:44:56 +09:00
Taiki Endo
1b8d452217 ci: Test ubuntu-22.04-arm and ubuntu-24.04-arm
https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/
2025-01-17 16:35:45 +09:00
12 changed files with 1366 additions and 1308 deletions

View File

@@ -11,7 +11,7 @@ indent_style = space
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
[*.{json,md,rb,yml,yaml}] [*.{json,md,rb,sh,yml,yaml}]
indent_size = 2 indent_size = 2
[*.{js,yml,yaml}] [*.{js,yml,yaml}]

View File

@@ -47,7 +47,9 @@ jobs:
include: include:
# NB: Sync list with https://github.com/taiki-e/checkout-action/blob/HEAD/.github/workflows/ci.yml # NB: Sync list with https://github.com/taiki-e/checkout-action/blob/HEAD/.github/workflows/ci.yml
- os: ubuntu-22.04 - os: ubuntu-22.04
- os: ubuntu-22.04-arm
- os: ubuntu-24.04 - os: ubuntu-24.04
- os: ubuntu-24.04-arm
- os: ubuntu-22.04 - os: ubuntu-22.04
tool: major.minor.patch tool: major.minor.patch
- os: ubuntu-22.04 - os: ubuntu-22.04

View File

@@ -10,6 +10,14 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased] ## [Unreleased]
## [2.47.17] - 2025-01-19
- Update `cargo-audit@latest` to 0.21.1.
## [2.47.16] - 2025-01-18
- Update `cargo-make@latest` to 0.37.24.
## [2.47.15] - 2025-01-16 ## [2.47.15] - 2025-01-16
- Update `cargo-tarpaulin@latest` to 0.31.5. - Update `cargo-tarpaulin@latest` to 0.31.5.
@@ -3342,7 +3350,9 @@ Note: This release is considered a breaking change because installing on version
Initial release Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.47.15...HEAD [Unreleased]: https://github.com/taiki-e/install-action/compare/v2.47.17...HEAD
[2.47.17]: https://github.com/taiki-e/install-action/compare/v2.47.16...v2.47.17
[2.47.16]: https://github.com/taiki-e/install-action/compare/v2.47.15...v2.47.16
[2.47.15]: https://github.com/taiki-e/install-action/compare/v2.47.14...v2.47.15 [2.47.15]: https://github.com/taiki-e/install-action/compare/v2.47.14...v2.47.15
[2.47.14]: https://github.com/taiki-e/install-action/compare/v2.47.13...v2.47.14 [2.47.14]: https://github.com/taiki-e/install-action/compare/v2.47.13...v2.47.14
[2.47.13]: https://github.com/taiki-e/install-action/compare/v2.47.12...v2.47.13 [2.47.13]: https://github.com/taiki-e/install-action/compare/v2.47.12...v2.47.13

View File

@@ -22,8 +22,8 @@ GitHub Action for installing development tools (mainly from GitHub Releases).
| Name | Required | Description | Type | Default | | Name | Required | Description | Type | Default |
| -------- |:--------:| --------------------------------------- | ------- | ------- | | -------- |:--------:| --------------------------------------- | ------- | ------- |
| tool | **true** | Tools to install (comma-separated list) | String | | | tool | **✓** | Tools to install (comma-separated list) | String | |
| checksum | false | Whether to enable checksums | Boolean | `true` | | checksum | | Whether to enable checksums | Boolean | `true` |
### Example workflow ### Example workflow

View File

@@ -740,9 +740,9 @@ for tool in "${tools[@]}"; do
read_manifest "${tool}" "${version}" read_manifest "${tool}" "${version}"
if [[ "${download_info}" == "null" ]]; then if [[ "${download_info}" == "null" ]]; then
if [[ "${rust_crate}" == "null" ]]; then if [[ "${rust_crate}" == "null" ]]; then
bail "${tool}@${version} for '${host_os}' is not supported" bail "${tool}@${version} for '${host_arch}_${host_os}' is not supported"
fi fi
warn "${tool}@${version} for '${host_os}' is not supported; fallback to cargo-binstall" warn "${tool}@${version} for '${host_arch}_${host_os}' is not supported; fallback to cargo-binstall"
case "${version}" in case "${version}" in
latest) unsupported_tools+=("${rust_crate}") ;; latest) unsupported_tools+=("${rust_crate}") ;;
*) unsupported_tools+=("${rust_crate}@${version}") ;; *) unsupported_tools+=("${rust_crate}@${version}") ;;

View File

@@ -20,10 +20,28 @@
}, },
"license_markdown": "[Apache-2.0](https://github.com/rustsec/rustsec/blob/HEAD/cargo-audit/LICENSE-APACHE) OR [MIT](https://github.com/rustsec/rustsec/blob/HEAD/cargo-audit/LICENSE-MIT)", "license_markdown": "[Apache-2.0](https://github.com/rustsec/rustsec/blob/HEAD/cargo-audit/LICENSE-APACHE) OR [MIT](https://github.com/rustsec/rustsec/blob/HEAD/cargo-audit/LICENSE-MIT)",
"latest": { "latest": {
"version": "0.21.0" "version": "0.21.1"
}, },
"0.21": { "0.21": {
"version": "0.21.0" "version": "0.21.1"
},
"0.21.1": {
"x86_64_linux_musl": {
"etag": "0x8DD383807A86B60",
"checksum": "e1d057a43028cb2359adcb75029e345b5791fbd2a1a01a3b8f16521035662cf3"
},
"x86_64_macos": {
"etag": "0x8DD3837D203A3C3",
"checksum": "ca21223691975d97a2442623a4d90e933d349199a728fdabaf98124ff65ee53f"
},
"x86_64_windows": {
"etag": "0x8DD383870DE65E0",
"checksum": "cb90ebf6c76bdf7014fb0114b3bc897917ce0ea5ecaf16f7dc7009612941dace"
},
"aarch64_linux_gnu": {
"etag": "0x8DD383809DEED88",
"checksum": "bd9a9ceb4887f28c8ace1a35da39818cbdcf98b1088bcd47544bff3a07e856bf"
}
}, },
"0.21.0": { "0.21.0": {
"x86_64_linux_musl": { "x86_64_linux_musl": {

View File

@@ -20,10 +20,28 @@
}, },
"license_markdown": "[Apache-2.0](https://github.com/sagiegurari/cargo-make/blob/master/LICENSE)", "license_markdown": "[Apache-2.0](https://github.com/sagiegurari/cargo-make/blob/master/LICENSE)",
"latest": { "latest": {
"version": "0.37.23" "version": "0.37.24"
}, },
"0.37": { "0.37": {
"version": "0.37.23" "version": "0.37.24"
},
"0.37.24": {
"x86_64_linux_musl": {
"etag": "0x8DD37D36A8C5F07",
"checksum": "ff76969f0caab39c56d168b94b2540fde34609aa6562d555081818ece387b005"
},
"x86_64_macos": {
"etag": "0x8DD37D2ECB9F67A",
"checksum": "afd10db16ce089e0208d4829d46351833d9eb61f3181452a38a2a089bafedc31"
},
"x86_64_windows": {
"etag": "0x8DD37D379E8369F",
"checksum": "f7c757c7e147023ac86d80b134e5a59e0ed8ff032e39be3464cc4aad1e5e0f33"
},
"aarch64_macos": {
"etag": "0x8DD37D2EB99C51D",
"checksum": "823fe51d2baa5679a5dfd33c703d0176374f8f023a2ee950f2e03dc4f31ee523"
}
}, },
"0.37.23": { "0.37.23": {
"x86_64_linux_musl": { "x86_64_linux_musl": {

View File

@@ -110,6 +110,12 @@ case "$(uname -s)" in
;; ;;
*) bail "unrecognized OS type '$(uname -s)'" ;; *) bail "unrecognized OS type '$(uname -s)'" ;;
esac esac
# See main.sh
case "$(uname -m)" in
aarch64 | arm64) host_arch=aarch64 ;;
xscale | arm | armv*l) bail "32-bit Arm runner is not supported yet by this action; if you need support for this platform, please submit an issue at <https://github.com/taiki-e/install-action>" ;;
*) host_arch=x86_64 ;;
esac
tools=() tools=()
for manifest in tools/codegen/base/*.json; do for manifest in tools/codegen/base/*.json; do
@@ -120,9 +126,13 @@ for manifest in tools/codegen/base/*.json; do
continue continue
fi fi
case "${host_os}" in case "${host_os}" in
linux*) ;; linux*)
if [[ "${host_arch}" != "x86_64" ]] && [[ "$(jq -r ".platform.${host_arch}_${host_os}_gnu" "${manifest}")" == "null" ]] && [[ "$(jq -r ".platform.${host_arch}_${host_os}_musl" "${manifest}")" == "null" ]]; then
continue
fi
;;
*) *)
if [[ "$(jq -r ".platform.x86_64_${host_os}" "${manifest}")" == "null" ]]; then if [[ "$(jq -r ".platform.x86_64_${host_os}" "${manifest}")" == "null" ]] && [[ "$(jq -r ".platform.${host_arch}_${host_os}" "${manifest}")" == "null" ]]; then
continue continue
fi fi
;; ;;