Compare commits

...

10 Commits

Author SHA1 Message Date
Taiki Endo
9ba3ac3fd0 Release 2.54.0 2025-06-23 02:05:22 +09:00
Taiki Endo
e3d2e4ff1a Update changelog 2025-06-23 02:04:56 +09:00
Taiki Endo
74fc1f2d2a ci: Exclude cyclonedx on Ubuntu 14.04
```
+ cyclonedx --version
cyclonedx: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by cyclonedx)
cyclonedx: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by cyclonedx)
```
2025-06-23 02:03:32 +09:00
Taiki Endo
c9851b9ded Update wasmtime@latest to 34.0.0 2025-06-23 02:03:32 +09:00
Taiki Endo
47eecbedfd Update rclone@latest to 1.70.1 2025-06-23 02:03:32 +09:00
Taiki Endo
8ad169efe2 Update cyclonedx@latest to 0.28.2 2025-06-23 02:03:32 +09:00
Taiki Endo
cd15c75a91 Update cargo-binstall@latest to 1.14.1 2025-06-23 02:03:32 +09:00
John Vandenberg
7afdc6d42b Add cyclonedx (#1000)
Also improve check that gnu binaries are not needed if musl exists.
2025-06-19 20:55:47 +09:00
Taiki Endo
5b3d0ef321 Update release-plz@latest to 0.3.136 2025-06-19 18:16:48 +09:00
Taiki Endo
d92059b082 Include user-agent header in requests to crates.io
Based on 3f363be7b6 by Joe Birr-Pixton.

Fix the underlying cause of https://github.com/taiki-e/install-action/issues/1005.

Co-authored-by: Joe Birr-Pixton <jpixton@gmail.com>
2025-06-18 22:55:40 +09:00
22 changed files with 300 additions and 38 deletions

View File

@@ -13,6 +13,7 @@ espup
fastestmirror
grcov
knope
libicu
linkcheck
mdbook
microdnf

View File

@@ -207,7 +207,7 @@ jobs:
- run: rm -- Cargo.toml
- name: Generate tool list
id: tool-list
run: tools/ci/tool-list.sh >>"${GITHUB_OUTPUT}"
run: tools/ci/tool-list.sh "" "${{ matrix.container }}" >>"${GITHUB_OUTPUT}"
# remove bash installed by checkout-action
- run: apk --no-cache del bash
shell: sh

View File

@@ -10,6 +10,18 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.54.0] - 2025-06-22
- Add `cyclonedx` ([#1000](https://github.com/taiki-e/install-action/pull/1000), thanks @jayvdb)
- Update `wasmtime@latest` to 34.0.0.
- Update `rclone@latest` to 1.70.1.
- Update `cargo-binstall@latest` to 1.14.1.
- Update `release-plz@latest` to 0.3.136.
## [2.53.2] - 2025-06-18
- Fix `cargo-nextest` installation failure on Ubuntu 24.04 due to HTTP 403 error on requests to crates.io. ([#1007](https://github.com/taiki-e/install-action/pull/1007))
@@ -4002,7 +4014,8 @@ Note: This release is considered a breaking change because installing on version
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.53.2...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.54.0...HEAD
[2.54.0]: https://github.com/taiki-e/install-action/compare/v2.53.2...v2.54.0
[2.53.2]: https://github.com/taiki-e/install-action/compare/v2.53.1...v2.53.2
[2.53.1]: https://github.com/taiki-e/install-action/compare/v2.53.0...v2.53.1
[2.53.0]: https://github.com/taiki-e/install-action/compare/v2.52.8...v2.53.0

View File

@@ -38,6 +38,7 @@ See the [Supported tools section in README.md](README.md#supported-tools) for ho
| [**cargo-valgrind**](https://github.com/jfrimmel/cargo-valgrind) | `$CARGO_HOME/bin` | [GitHub Releases](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) |
| [**cargo-zigbuild**](https://github.com/rust-cross/cargo-zigbuild) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rust-cross/cargo-zigbuild/releases) | Linux, macOS, Windows | [MIT](https://github.com/rust-cross/cargo-zigbuild/blob/main/LICENSE) |
| [**cross**](https://github.com/cross-rs/cross) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/cross-rs/cross/releases) | Linux, macOS, Windows | [MIT](https://github.com/cross-rs/cross/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/cross-rs/cross/blob/main/LICENSE-APACHE) |
| [**cyclonedx**](https://github.com/CycloneDX/cyclonedx-cli) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/CycloneDX/cyclonedx-cli/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/CycloneDX/cyclonedx-cli/blob/main/LICENSE) |
| [**deepsource**](https://github.com/DeepSourceCorp/cli) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/DeepSourceCorp/cli/releases) | Linux, macOS, Windows | [BSD-2-Clause](https://github.com/DeepSourceCorp/cli/blob/master/LICENSE) |
| [**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/main/LICENSE) |
| [**earthly**](https://github.com/earthly/earthly) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/earthly/earthly/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/earthly/earthly/blob/main/LICENSE) |

View File

@@ -49,3 +49,4 @@ runs:
INPUT_CHECKSUM: ${{ inputs.checksum }}
INPUT_FALLBACK: ${{ inputs.fallback }}
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
ACTION_USER_AGENT: ${{ github.action_repository }} (${{ github.action_ref }})

View File

@@ -220,7 +220,7 @@ read_manifest() {
# TODO: don't hardcode tool name and use 'immediate_yank_reflection' field in base manifest.
case "${tool}" in
cargo-nextest | nextest)
crate_info=$(curl --proto '=https' --tlsv1.2 -fsSL --retry 10 "https://crates.io/api/v1/crates/${rust_crate}" || true)
crate_info=$(curl -v --user-agent "${ACTION_USER_AGENT}" --proto '=https' --tlsv1.2 -fsSL --retry 10 "https://crates.io/api/v1/crates/${rust_crate}" || true)
if [[ -n "${crate_info}" ]]; then
while true; do
yanked=$(jq -r ".versions[] | select(.num == \"${exact_version}\") | .yanked" <<<"${crate_info}")
@@ -776,6 +776,13 @@ for tool in "${tools[@]}"; do
;;
esac
;;
cyclonedx)
case "${host_os}" in
linux)
apt_install libicu-dev
;;
esac
;;
esac
download_from_download_info "${tool}" "${version}"

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.13.0"
"version": "1.14.1"
},
"1.13.0": {
"1.14.1": {
"x86_64_linux_musl": {
"etag": "0x8DDA8291E356B17",
"checksum": "12ba6a4022bdf121701fbd6c01d8021d7f867993877b26582f0d7281bae7a1f9"
"etag": "0x8DDB1901628CEE6",
"checksum": "e1d1231720e6ed497a4b0f8881b08f5df9ce1a938fb3ae6f2444e95eb601fe99"
},
"x86_64_macos": {
"etag": "0x8DDA828B2A2FA39",
"checksum": "9e5b08b6f4145580bf1f5c98c3b877493066b5e228c675150eb62fc9e0a83259"
"etag": "0x8DDB18F7533424E",
"checksum": "3de381bdcca08c418dc790d2a283711894a0577c6e55bba0d4e6cb8b0378b36d"
},
"x86_64_windows": {
"etag": "0x8DDA829DE2DFEEC",
"checksum": "76eddc873105062022b1fd1b8ca090879325664d71635e94d59ce09fff3889b9"
"etag": "0x8DDB1902C11BB61",
"checksum": "a43fb6403e7286c08387c5d0f2780306da7a61c5f0a893761b160d3e2d1cee5a"
},
"aarch64_linux_musl": {
"etag": "0x8DDA82874CC35EB",
"checksum": "2be845b457aabfc66d68be77d69c0fd849edd446a4d23b2e3fd174ca502bd343"
"etag": "0x8DDB18F7C131D04",
"checksum": "17d69bcc07a0e38c912e7f596ed71b1f5f59dc8980da59890c5bc86c07e8506a"
},
"aarch64_macos": {
"etag": "0x8DDA82917C58C4C",
"checksum": "02d6ca67746aecb27fd4bb063b9be3e6f6bc67dcd6c3105941bff64e064f991a"
"etag": "0x8DDB18F66CD0B7D",
"checksum": "07d46d31fb68ac10b906c5d39d611ded7787966f4ed15c598cb6175b45a2b069"
},
"aarch64_windows": {
"etag": "0x8DDA8299B758A49",
"checksum": "a57c01ae03825c44f946e8b773ebd018a0f3f1a4861a611c6cd61be180bd3cd6"
"etag": "0x8DDB18FF208C491",
"checksum": "e998ed6f30fc4c979bead45f555dc56c85962197a451b12dbe0fdc4de61d63c4"
}
}
}

125
manifests/cyclonedx.json generated Normal file
View File

@@ -0,0 +1,125 @@
{
"rust_crate": null,
"template": {
"x86_64_linux_gnu": {
"url": "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${version}/cyclonedx-linux-x64"
},
"x86_64_macos": {
"url": "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${version}/cyclonedx-osx-x64"
},
"x86_64_windows": {
"url": "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${version}/cyclonedx-win-x64.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${version}/cyclonedx-linux-arm64"
},
"aarch64_macos": {
"url": "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${version}/cyclonedx-osx-arm64"
},
"aarch64_windows": {
"url": "https://github.com/CycloneDX/cyclonedx-cli/releases/download/v${version}/cyclonedx-win-arm64.exe"
}
},
"license_markdown": "[Apache-2.0](https://github.com/CycloneDX/cyclonedx-cli/blob/main/LICENSE)",
"latest": {
"version": "0.28.2"
},
"0.28": {
"version": "0.28.2"
},
"0.28.2": {
"x86_64_linux_gnu": {
"etag": "0x8DDAF3FC19823E2",
"checksum": "839d11fbfbc903dceacc529be2d24fb2b984fffe95b0a7f36e4457c6cb066e8b"
},
"x86_64_macos": {
"etag": "0x8DDAF3FD4B6B18F",
"checksum": "0de1b0c768923d7446d18b71682b0b0a81492f0b894ce2529ed6ad18dd2c4112"
},
"x86_64_windows": {
"etag": "0x8DDAF3FC9F635D1",
"checksum": "f3df3c0481e8335bd096efbba1a1ea79b5262e122053e83b7b7e5201828b03f5"
},
"aarch64_linux_gnu": {
"etag": "0x8DDAF3FC7E1E215",
"checksum": "581663dfa422ac5d73d59cdfb08299eb3429dce921175ccb42b5711509305da1"
},
"aarch64_macos": {
"etag": "0x8DDAF3FE94F3883",
"checksum": "92cb1bcb348b11570995e2a96c1a3406f37305acfcb131830e8e99ff9adbc591"
},
"aarch64_windows": {
"etag": "0x8DDAF3FCDE4D4BE",
"checksum": "6c48aba7ef5c933127cdd97a4e0800b96882db35b547b896093d716b3617028d"
}
},
"0.28.1": {
"x86_64_linux_gnu": {
"etag": "0x8DDAF2153E394A3",
"checksum": "3447125ff2ef3c78571cf92fa914efed49c89685eb2054c7250f7e58853a8b1a"
},
"x86_64_macos": {
"etag": "0x8DDAF2162CA2046",
"checksum": "c7984ab1744b592fb0778c9965212cf45f523e81f4463b7e6b1b2c3c412a8934"
},
"x86_64_windows": {
"etag": "0x8DDAF215C402033",
"checksum": "db5ec1d69776d973713ce1e351cdcd89c8db48080b4980def605d77cd4acd4d7"
},
"aarch64_linux_gnu": {
"etag": "0x8DDAF2159D0F3C5",
"checksum": "70fac8f881e277bbc33ce30fb4470e20876c6f9a897de9a89e0f3f2e32d69e2c"
},
"aarch64_macos": {
"etag": "0x8DDAF217863898B",
"checksum": "eff9acf9cc5ce271d66f9a8eb8cdcbbbb99ca7d266d4c4b34d4e95e582f112ac"
},
"aarch64_windows": {
"etag": "0x8DDAF2160D93299",
"checksum": "83bfcf7f23bb8f3d6fa47cd825a7a4e8ca89c9d47ace76c0499c51a8e7ee7329"
}
},
"0.28.0": {
"x86_64_linux_gnu": {
"etag": "0x8DDAF1FDB45782D",
"checksum": "f1b8ee23ca90643a996ffee764434d5893017c18bf6a2acf3eb1a69b378c33e6"
},
"x86_64_windows": {
"etag": "0x8DDAF1FE135E13D",
"checksum": "1ab6f28777739568b895c5f64c75d3ab8eb0b0642a924f4cdae45e2e73343581"
},
"aarch64_linux_gnu": {
"etag": "0x8DDAF1FDFD9874A",
"checksum": "5389fc6b10eb76500d1e830990a4184d84d6cbde9e8b883691432339e899b9c0"
}
},
"0.27": {
"version": "0.27.2"
},
"0.27.2": {
"x86_64_linux_gnu": {
"etag": "0x8DD0C1D089A2E0C",
"checksum": "5e1595542a6367378a3944bbd3008caab3de65d572345361d3b9597b1dbbaaa0"
},
"x86_64_macos": {
"etag": "0x8DD0C1D112585AB",
"checksum": "331c2245ef7dadf09fa3d2710a2aaab071ff6bea2ba3e5df8f95a4f3f6e825e9"
},
"x86_64_windows": {
"etag": "0x8DD0C1D0CEB17DF",
"checksum": "bb26bb56293ebe6f08fa63d2bf50653fc6b180174fded975c81ac96ac192a7db"
},
"aarch64_linux_gnu": {
"etag": "0x8DD0C1D0BAFB51E",
"checksum": "5b4181f6fd4d8fbe54e55c1b3983d9af66ce2910a263814b290cbd5e351e68a4"
},
"aarch64_macos": {
"etag": "0x8DD0C1D488DD343",
"checksum": "2d24c331c2ccc5e4061722bd4780c8b295041b2569d130bbe80cf7da95b97171"
},
"aarch64_windows": {
"etag": "0x8DD0C1D10099579",
"checksum": "35762d3e1979576f474ffc1c5b2273e19c33cdca44e5f1994c3de5d9cd0e9c1d"
}
}
}

32
manifests/rclone.json generated
View File

@@ -28,13 +28,39 @@
},
"license_markdown": "[MIT](https://github.com/rclone/rclone/blob/master/COPYING)",
"latest": {
"version": "1.70.0"
"version": "1.70.1"
},
"1": {
"version": "1.70.0"
"version": "1.70.1"
},
"1.70": {
"version": "1.70.0"
"version": "1.70.1"
},
"1.70.1": {
"x86_64_linux_musl": {
"etag": "0x8DDAF32C68DAC58",
"checksum": "7f62fdd6fe2006c28bd7bc3d45e7721a47c85100e1c78554bb765393a3b008da"
},
"x86_64_macos": {
"etag": "0x8DDAF3397C1FD42",
"checksum": "c09cba0e8379d387256d31be71873755cbb81f1e1b30a6e081c0ff19e33d2702"
},
"x86_64_windows": {
"etag": "0x8DDAF33D1177CDF",
"checksum": "0d2a25e856b08d689a72307f2136aba0f3e85b36594fc878378302961678088d"
},
"aarch64_linux_musl": {
"etag": "0x8DDAF32DE51E174",
"checksum": "9d98bbfbb6295681f756a000024c8847f62a940e25d82726dcc678ddbdd3a9e8"
},
"aarch64_macos": {
"etag": "0x8DDAF33A09DD5E9",
"checksum": "973be2ebb18ec151e39c1d482010a16acf3e7335ea46e267384da22bb5f78ce2"
},
"aarch64_windows": {
"etag": "0x8DDAF33D9495625",
"checksum": "597be59fb037bc2b06dc4f14d90ba966c093ecd8f551372e50c687f4c92d0e4e"
}
},
"1.70.0": {
"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.135"
"version": "0.3.136"
},
"0.3": {
"version": "0.3.135"
"version": "0.3.136"
},
"0.3.136": {
"x86_64_linux_musl": {
"etag": "0x8DDAEFFA0B68EAD",
"checksum": "b5f6a0df018999649ea1b4424f451707c44f1b9144d2a47be70eea6ae07a8cab"
},
"x86_64_macos": {
"etag": "0x8DDAF02919DEF10",
"checksum": "685797a91b1f535b17ca1224166996b7cdaf35518d6400d3a5655e56c1ba4e1c"
},
"x86_64_windows": {
"etag": "0x8DDAF0045FE4F47",
"checksum": "94b6b50246153396ae226091c4375fbd715122ca11129268a9d9dcb29211b680"
},
"aarch64_linux_musl": {
"etag": "0x8DDAEFFAEF126F9",
"checksum": "a58a8c83d489c71469210ce9244195b2630b7b644b2275417f4de446580e8345"
},
"aarch64_macos": {
"etag": "0x8DDAEFFFEC8A7DD",
"checksum": "ff51abf64f4b2a8671759ce815bb0e79616de4dcbd203d5964a3fe5dc8f5a1c1"
},
"aarch64_windows": {
"etag": "0x8DDAF0069720370",
"checksum": "eb52f8740f2c9981ecfb2eac0379f307a085ed96d6ee37c22fda32302dc5ad83"
}
},
"0.3.135": {
"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": "33.0.0"
"version": "34.0.0"
},
"34": {
"version": "34.0.0"
},
"34.0": {
"version": "34.0.0"
},
"34.0.0": {
"x86_64_linux_gnu": {
"etag": "0x8DDB012F2E0EF0C",
"checksum": "2e35b0dbdadf455e4673eb8e60b9fe2b1ddbc712a67dc81ba4ed27958ce77711"
},
"x86_64_macos": {
"etag": "0x8DDB012F4764133",
"checksum": "cd38edf51b5187220bf3b4b75131f645c8e584f32c337c60a90fa32994679546"
},
"x86_64_windows": {
"etag": "0x8DDB012FACA5297",
"checksum": "d743689f4dd5d3832a800fa3b1aa0234fb2b06c6123a0aa788b09870d2f4ca77"
},
"aarch64_linux_gnu": {
"etag": "0x8DDB012DF44E92D",
"checksum": "92a73f86324b7cfd387115162b80cdef4a2987f2d27c3dc36760d4b5ae3a4f46"
},
"aarch64_macos": {
"etag": "0x8DDB012E06F958C",
"checksum": "d97624b032d43f05b927bf459409152de9ca78c2aece93417e6cb5c97b3f79af"
},
"aarch64_windows": {
"etag": "0x8DDB012E37024E7",
"checksum": "3685400ff5c99dd304f66580e02bce6b20477b09e5c31c46bcd6d14226567c4f"
}
},
"33": {
"version": "33.0.0"

View File

@@ -62,6 +62,7 @@ case "${1:-}" in
exit 1
;;
esac
runner="${2:-}"
case "$(uname -s)" in
Linux)
host_os=linux
@@ -108,6 +109,12 @@ case "$(uname -s)" in
if ! type -P snap >/dev/null; then
incompat_tools+=(valgrind)
fi
if ! type -P apt-get >/dev/null; then
incompat_tools+=(cyclonedx)
fi
if [[ "${runner}" == "ubuntu:14.04" ]]; then
incompat_tools+=(cyclonedx)
fi
;;
Darwin) host_os=macos ;;
MINGW* | MSYS* | CYGWIN* | Windows_NT) host_os=windows ;;

View File

@@ -5,9 +5,6 @@
"tag_prefix": "cli/v",
"bin": "${package}${exe}",
"platform": {
"x86_64_linux_gnu": {
"asset_name": "${package}-linux-x64"
},
"x86_64_linux_musl": {
"asset_name": "${package}-linux-x64-musl"
},
@@ -17,9 +14,6 @@
"x86_64_windows": {
"asset_name": "${package}-win32-x64${exe}"
},
"aarch64_linux_gnu": {
"asset_name": "${package}-linux-arm64"
},
"aarch64_linux_musl": {
"asset_name": "${package}-linux-arm64-musl"
},

View File

@@ -5,9 +5,6 @@
"bin": "${package}-${rust_target}/${package}${exe}",
"version_range": ">= 0.5.0",
"platform": {
"x86_64_linux_gnu": {
"asset_name": "${package}-linux-amd64.tar.gz"
},
"x86_64_linux_musl": {
"asset_name": "${package}-${rust_target}.tar.xz"
},

View File

@@ -9,7 +9,6 @@
"${package}-v${version}-${rust_target}.zip"
],
"platform": {
"x86_64_linux_gnu": {},
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {},

View File

@@ -6,7 +6,6 @@
"asset_name": "${package}-v${version}-${rust_target}.tar.gz",
"bin": "./${package}-v${version}-${rust_target}/${package}${exe}",
"platform": {
"x86_64_linux_gnu": {},
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {

View File

@@ -0,0 +1,25 @@
{
"repository": "https://github.com/CycloneDX/cyclonedx-cli",
"tag_prefix": "v",
"version_range": ">= 0.27.2",
"platform": {
"x86_64_linux_gnu": {
"asset_name": "${package}-linux-x64"
},
"x86_64_macos": {
"asset_name": "${package}-osx-x64"
},
"x86_64_windows": {
"asset_name": "${package}-win-x64${exe}"
},
"aarch64_linux_gnu": {
"asset_name": "${package}-linux-arm64"
},
"aarch64_macos": {
"asset_name": "${package}-osx-arm64"
},
"aarch64_windows": {
"asset_name": "${package}-win-arm64${exe}"
}
}
}

View File

@@ -4,7 +4,6 @@
"rust_crate": "${package}",
"asset_name": "${package}-${rust_target}.zip",
"platform": {
"x86_64_linux_gnu": {},
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {},

View File

@@ -6,7 +6,6 @@
"version_range": ">= 0.1.0",
"platform": {
"x86_64_linux_musl": {},
"x86_64_linux_gnu": {},
"x86_64_macos": {},
"x86_64_windows": {
"asset_name": "${package}-v${version}-${rust_target}.zip"

View File

@@ -7,7 +7,6 @@
"${package}-${rust_target}.zip"
],
"platform": {
"x86_64_linux_gnu": {},
"x86_64_linux_musl": {},
"x86_64_macos": {},
"x86_64_windows": {},

View File

@@ -562,7 +562,6 @@ fn main() -> Result<()> {
.values()
.any(|m| matches!(m, ManifestRef::Real(m) if m.download_info.contains_key(&p)))
{
// TODO: better error message: https://github.com/taiki-e/install-action/pull/411
bail!(
"platform list in base manifest for {package} contains {p:?}, \
but result manifest doesn't contain it; \

View File

@@ -282,6 +282,19 @@ impl BaseManifest {
}
}
}
if self.platform.is_empty() {
panic!("At least one platform must be specified");
}
if !self.prefer_linux_gnu
&& (self.platform.contains_key(&HostPlatform::x86_64_linux_gnu)
&& self.platform.contains_key(&HostPlatform::x86_64_linux_musl))
&& (self.platform.contains_key(&HostPlatform::aarch64_linux_gnu)
&& self.platform.contains_key(&HostPlatform::aarch64_linux_musl))
{
panic!(
"When *-linux-musl platform is specified, *-linux-gnu for the same architecture will never be used and should not be specified"
);
}
}
}