mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-29 02:20:22 +00:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c595e9f7b | ||
|
|
892838bca9 | ||
|
|
7ea888af71 | ||
|
|
d65f93a644 | ||
|
|
7795204009 | ||
|
|
a3bd4a6f9c | ||
|
|
a124e0a223 | ||
|
|
77262c00ec | ||
|
|
ae97ff9daf | ||
|
|
4226e24080 | ||
|
|
e03236526a | ||
|
|
7cd5fd4051 | ||
|
|
bfd7aadad6 | ||
|
|
011a3fc5ce |
@@ -8,7 +8,6 @@ error_on_line_overflow = true
|
||||
# Override the default formatting style.
|
||||
# See https://internals.rust-lang.org/t/running-rustfmt-on-rust-lang-rust-and-other-rust-lang-repositories/8732/81.
|
||||
use_small_heuristics = "Max"
|
||||
# This is the default of 2024 edition https://github.com/rust-lang/rust/pull/114764.
|
||||
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/3370)
|
||||
overflow_delimited_expr = true
|
||||
# This is unstable (tracking issue: https://github.com/rust-lang/rustfmt/issues/4991).
|
||||
@@ -27,6 +26,7 @@ use_try_shorthand = true
|
||||
# Set the default settings again to always apply the proper formatting without
|
||||
# being affected by the editor settings.
|
||||
edition = "2021"
|
||||
style_edition = "2024"
|
||||
hard_tabs = false
|
||||
newline_style = "Unix"
|
||||
tab_spaces = 4
|
||||
|
||||
31
CHANGELOG.md
31
CHANGELOG.md
@@ -10,6 +10,30 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.49.4] - 2025-02-25
|
||||
|
||||
- Update `typos@latest` to 1.29.10.
|
||||
|
||||
## [2.49.3] - 2025-02-25
|
||||
|
||||
- Update `wash@latest` to 0.39.0.
|
||||
|
||||
- Update `cargo-nextest@latest` to 0.9.92.
|
||||
|
||||
## [2.49.2] - 2025-02-25
|
||||
|
||||
- Update `sccache@latest` to 0.10.0.
|
||||
|
||||
- Update `cargo-machete@latest` to 0.8.0.
|
||||
|
||||
## [2.49.1] - 2025-02-24
|
||||
|
||||
- Update `cargo-deny@latest` to 0.18.0.
|
||||
|
||||
## [2.49.0] - 2025-02-23
|
||||
|
||||
- Allow installing pre-release versions using binstall. ([#868](https://github.com/taiki-e/install-action/pull/868))
|
||||
|
||||
## [2.48.22] - 2025-02-23
|
||||
|
||||
- Update `cargo-binstall@latest` to 1.11.1.
|
||||
@@ -3554,7 +3578,12 @@ Note: This release is considered a breaking change because installing on version
|
||||
|
||||
Initial release
|
||||
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.48.22...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.49.4...HEAD
|
||||
[2.49.4]: https://github.com/taiki-e/install-action/compare/v2.49.3...v2.49.4
|
||||
[2.49.3]: https://github.com/taiki-e/install-action/compare/v2.49.2...v2.49.3
|
||||
[2.49.2]: https://github.com/taiki-e/install-action/compare/v2.49.1...v2.49.2
|
||||
[2.49.1]: https://github.com/taiki-e/install-action/compare/v2.49.0...v2.49.1
|
||||
[2.49.0]: https://github.com/taiki-e/install-action/compare/v2.48.22...v2.49.0
|
||||
[2.48.22]: https://github.com/taiki-e/install-action/compare/v2.48.21...v2.48.22
|
||||
[2.48.21]: https://github.com/taiki-e/install-action/compare/v2.48.20...v2.48.21
|
||||
[2.48.20]: https://github.com/taiki-e/install-action/compare/v2.48.19...v2.48.20
|
||||
|
||||
4
main.sh
4
main.sh
@@ -639,11 +639,11 @@ for tool in "${tools[@]}"; do
|
||||
if [[ "${tool}" == *"@"* ]]; then
|
||||
version="${tool#*@}"
|
||||
tool="${tool%@*}"
|
||||
if [[ ! "${version}" =~ ^([1-9][0-9]*(\.[0-9]+(\.[0-9]+)?)?|0\.[1-9][0-9]*(\.[0-9]+)?|^0\.0\.[0-9]+)$|^latest$ ]]; then
|
||||
if [[ ! "${version}" =~ ^([1-9][0-9]*(\.[0-9]+(\.[0-9]+)?)?|0\.[1-9][0-9]*(\.[0-9]+)?|^0\.0\.[0-9]+)(-[0-9A-Za-z\.-]+)?$|^latest$ ]]; then
|
||||
if [[ ! "${version}" =~ ^([1-9][0-9]*(\.[0-9]+(\.[0-9]+)?)?|0\.[1-9][0-9]*(\.[0-9]+)?|^0\.0\.[0-9]+)(-[0-9A-Za-z\.-]+)?(\+[0-9A-Za-z\.-]+)?$|^latest$ ]]; then
|
||||
bail "install-action does not support semver operators: '${version}'"
|
||||
fi
|
||||
bail "install-action v2 does not support semver pre-release and build-metadata: '${version}'; if you need these supports again, please submit an issue at <https://github.com/taiki-e/install-action>"
|
||||
bail "install-action v2 does not support semver build-metadata: '${version}'; if you need these supports again, please submit an issue at <https://github.com/taiki-e/install-action>"
|
||||
fi
|
||||
else
|
||||
version=latest
|
||||
|
||||
27
manifests/cargo-deny.json
generated
27
manifests/cargo-deny.json
generated
@@ -24,7 +24,32 @@
|
||||
},
|
||||
"license_markdown": "[MIT](https://github.com/EmbarkStudios/cargo-deny/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/EmbarkStudios/cargo-deny/blob/main/LICENSE-APACHE)",
|
||||
"latest": {
|
||||
"version": "0.17.0"
|
||||
"version": "0.18.0"
|
||||
},
|
||||
"0.18": {
|
||||
"version": "0.18.0"
|
||||
},
|
||||
"0.18.0": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD54AD3CA8695C",
|
||||
"checksum": "9f0c7b5b84242db9b1d4c47155c4cecc006a9dd657aa730a186939379a8c2200"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD54AD2A210547",
|
||||
"checksum": "b131c2871d982aa1e322a65c09c5c2971dffb24689921df287d73f423c888991"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD54ADAE24EDA7",
|
||||
"checksum": "5f1d1ad125f2e626b2c393d71e2ab36b4f468c47711547832c1f4da19f892ca0"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DD54AD5819A2C2",
|
||||
"checksum": "1a6f16dbaf308a64dfa1fb310a717a268f2b38bfd1bc32d5ce2c1f8b72adeec2"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DD54AD34C97FE5",
|
||||
"checksum": "e1cb27af1d1020a19dd3c48019071b0c21b2641b8fbc49a2806223f6cb47e2ff"
|
||||
}
|
||||
},
|
||||
"0.17": {
|
||||
"version": "0.17.0"
|
||||
|
||||
31
manifests/cargo-machete.json
generated
31
manifests/cargo-machete.json
generated
@@ -3,7 +3,36 @@
|
||||
"template": null,
|
||||
"license_markdown": "[MIT](https://github.com/bnjbvr/cargo-machete/blob/main/LICENSE.md)",
|
||||
"latest": {
|
||||
"version": "0.7.0"
|
||||
"version": "0.8.0"
|
||||
},
|
||||
"0.8": {
|
||||
"version": "0.8.0"
|
||||
},
|
||||
"0.8.0": {
|
||||
"x86_64_linux_musl": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.8.0/cargo-machete-v0.8.0-x86_64-unknown-linux-musl.tar.gz",
|
||||
"etag": "0x8DD550F01B09F95",
|
||||
"checksum": "020f6608f9be1562d1fb601e5808e541ccb8806e7e4dfde27d48bc22254a002c",
|
||||
"bin": "cargo-machete-v0.8.0-x86_64-unknown-linux-musl/cargo-machete"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.8.0/cargo-machete-v0.8.0-x86_64-apple-darwin.tar.gz",
|
||||
"etag": "0x8DD550F074262C8",
|
||||
"checksum": "f1304100fef4012e6b3f4b74fa7d6a71ff0de3cc3d8a3e67773a434f2854a0d8",
|
||||
"bin": "cargo-machete-v0.8.0-x86_64-apple-darwin/cargo-machete"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.8.0/cargo-machete-v0.8.0-x86_64-pc-windows-msvc.tar.gz",
|
||||
"etag": "0x8DD550F250F5178",
|
||||
"checksum": "19f15db89529f0e01fa0afb56d1d3c3d54bfb709086479bd190a0f4a3e2efd8c",
|
||||
"bin": "cargo-machete-v0.8.0-x86_64-pc-windows-msvc/cargo-machete.exe"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"url": "https://github.com/bnjbvr/cargo-machete/releases/download/v0.8.0/cargo-machete-v0.8.0-aarch64-apple-darwin.tar.gz",
|
||||
"etag": "0x8DD550F00F685B8",
|
||||
"checksum": "9047eacf791e23ff2b3b7b3489a9537c34df02dbdbbfe46541720e9ed3308adf",
|
||||
"bin": "cargo-machete-v0.8.0-aarch64-apple-darwin/cargo-machete"
|
||||
}
|
||||
},
|
||||
"0.7": {
|
||||
"version": "0.7.0"
|
||||
|
||||
27
manifests/cargo-nextest.json
generated
27
manifests/cargo-nextest.json
generated
@@ -19,10 +19,33 @@
|
||||
},
|
||||
"license_markdown": "[Apache-2.0](https://github.com/nextest-rs/nextest/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/nextest-rs/nextest/blob/main/LICENSE-MIT)",
|
||||
"latest": {
|
||||
"version": "0.9.91"
|
||||
"version": "0.9.92"
|
||||
},
|
||||
"0.9": {
|
||||
"version": "0.9.91"
|
||||
"version": "0.9.92"
|
||||
},
|
||||
"0.9.92": {
|
||||
"previous_stable_version": "0.9.91",
|
||||
"x86_64_linux_gnu": {
|
||||
"etag": "0x8DD552945447848",
|
||||
"checksum": "7d8fabc1b012075aab1b77c9462670e5ea34f9e40c6cf2c12a2ec2f9ee32bf20"
|
||||
},
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD55296F1AEA89",
|
||||
"checksum": "49e0727163248c394f9d1860da0f3eceff7ff2dbfd01da1a1ce93d4e46870896"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD55295BB83B68",
|
||||
"checksum": "9490f380ea0568d179423bb5028955f91690e58051a95be0eb15f0119bc3df7a"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD5529B6381BC4",
|
||||
"checksum": "e07391ea2bda51cb2ff26d536061723c7ea9e14adc69cd2ab9de44019bae7b03"
|
||||
},
|
||||
"aarch64_linux_gnu": {
|
||||
"etag": "0x8DD55293D4A0C2F",
|
||||
"checksum": "6adc85b7ffebe5bc3c4f30127c047d4766f65ddca906e12731591ea1cc81e995"
|
||||
}
|
||||
},
|
||||
"0.9.91": {
|
||||
"previous_stable_version": "0.9.90",
|
||||
|
||||
31
manifests/sccache.json
generated
31
manifests/sccache.json
generated
@@ -28,7 +28,36 @@
|
||||
},
|
||||
"license_markdown": "[Apache-2.0](https://github.com/mozilla/sccache/blob/main/LICENSE)",
|
||||
"latest": {
|
||||
"version": "0.9.1"
|
||||
"version": "0.10.0"
|
||||
},
|
||||
"0.10": {
|
||||
"version": "0.10.0"
|
||||
},
|
||||
"0.10.0": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD55012416929F",
|
||||
"checksum": "1fbb35e135660d04a2d5e42b59c7874d39b3deb17de56330b25b713ec59f849b"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD550122EF3D9A",
|
||||
"checksum": "6d4a77802ec83607478df7b6338be28171e65e58a38a49497ebec1fbb300fce4"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD550123829A62",
|
||||
"checksum": "0d499d0f73fa575f805df014af6ece49b840195fb7de0c552230899d77186ceb"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DD5501211A9151",
|
||||
"checksum": "d6a1ce4acd02b937cd61bc675a8be029a60f7bc167594c33d75732bbc0a07400"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DD55011FE604AA",
|
||||
"checksum": "5aba39252e2efa26bd76144f87ac59787d60fe567ab785e27e2a8c8190892eac"
|
||||
},
|
||||
"aarch64_windows": {
|
||||
"etag": "0x8DD5501207F9BF4",
|
||||
"checksum": "5fd6cd6dd474e91c37510719bf27cfe1826f929e40dd383c22a7b96da9a5458d"
|
||||
}
|
||||
},
|
||||
"0.9": {
|
||||
"version": "0.9.1"
|
||||
|
||||
24
manifests/typos.json
generated
24
manifests/typos.json
generated
@@ -16,13 +16,31 @@
|
||||
},
|
||||
"license_markdown": "[MIT](https://github.com/crate-ci/typos/blob/master/LICENSE-MIT) OR [Apache-2.0](https://github.com/crate-ci/typos/blob/master/LICENSE-APACHE)",
|
||||
"latest": {
|
||||
"version": "1.29.9"
|
||||
"version": "1.29.10"
|
||||
},
|
||||
"1": {
|
||||
"version": "1.29.9"
|
||||
"version": "1.29.10"
|
||||
},
|
||||
"1.29": {
|
||||
"version": "1.29.9"
|
||||
"version": "1.29.10"
|
||||
},
|
||||
"1.29.10": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD55AC1E75B717",
|
||||
"checksum": "853d001535396e52b1c4b335cd4a57975dd70b68ef80a2e630365c6d5a2e9236"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD55AC0C8BFA3F",
|
||||
"checksum": "fe270e559968fdf60bdec32e5de474689e761617c0823676e87a1f9780662ed2"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD55AC5A390B2C",
|
||||
"checksum": "795daf8175179d2b1ab992fa3d5c45bae6818d07b62b2f82a664a4787eb02326"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DD55AC2283CA7B",
|
||||
"checksum": "789537a84b40034cde80637baf989e6d3866f41155e16c22659d9ca929015348"
|
||||
}
|
||||
},
|
||||
"1.29.9": {
|
||||
"x86_64_linux_musl": {
|
||||
|
||||
27
manifests/wash.json
generated
27
manifests/wash.json
generated
@@ -19,7 +19,32 @@
|
||||
},
|
||||
"license_markdown": "[Apache-2.0](https://github.com/wasmCloud/wasmCloud/blob/main/LICENSE)",
|
||||
"latest": {
|
||||
"version": "0.38.0"
|
||||
"version": "0.39.0"
|
||||
},
|
||||
"0.39": {
|
||||
"version": "0.39.0"
|
||||
},
|
||||
"0.39.0": {
|
||||
"x86_64_linux_musl": {
|
||||
"etag": "0x8DD550CA196B8BA",
|
||||
"checksum": "7cfc3a7c62db1cffa93c92c8f42be9fb10525cde1354e38531508c7500170cf8"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"etag": "0x8DD550CA189A812",
|
||||
"checksum": "b96c77148758fb3c8ae74f94f13c3e95a526c592d125ae61d3a6d36bc438f21c"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"etag": "0x8DD550CA1730540",
|
||||
"checksum": "1ad7928bf88e3828409921026329af2ecfd86c792322171a9bed8e260127b8e8"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"etag": "0x8DD550CA185B4ED",
|
||||
"checksum": "279efdd262c9ea25a21b6f9b89eec67aae6583776b4f99e8c72fc3a15ce848c0"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"etag": "0x8DD550CA1825D4D",
|
||||
"checksum": "7805d1c2a6b7b76181329737555bd9a70cc6b006ea67de81d97ce2d5a40c5d3c"
|
||||
}
|
||||
},
|
||||
"0.38": {
|
||||
"version": "0.38.0"
|
||||
|
||||
@@ -11,11 +11,11 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use anyhow::{bail, Context as _, Result};
|
||||
use anyhow::{Context as _, Result, bail};
|
||||
use fs_err as fs;
|
||||
use install_action_internal_codegen::{
|
||||
workspace_root, BaseManifest, HostPlatform, Manifest, ManifestDownloadInfo, ManifestRef,
|
||||
ManifestTemplate, ManifestTemplateDownloadInfo, Manifests, Signing, SigningKind, Version,
|
||||
BaseManifest, HostPlatform, Manifest, ManifestDownloadInfo, ManifestRef, ManifestTemplate,
|
||||
ManifestTemplateDownloadInfo, Manifests, Signing, SigningKind, Version, workspace_root,
|
||||
};
|
||||
use sha2::{Digest as _, Sha256};
|
||||
use spdx::expression::{ExprNode, ExpressionReq, Operator};
|
||||
@@ -193,7 +193,7 @@ fn main() -> Result<()> {
|
||||
|
||||
let version_req: Option<semver::VersionReq> = match version_req {
|
||||
_ if latest_only => {
|
||||
let req = format!("={}", releases.first_key_value().unwrap().0 .0).parse()?;
|
||||
let req = format!("={}", releases.first_key_value().unwrap().0.0).parse()?;
|
||||
eprintln!("update manifest for versions '{req}'");
|
||||
Some(req)
|
||||
}
|
||||
@@ -215,7 +215,7 @@ fn main() -> Result<()> {
|
||||
let req = if version_req == "latest" {
|
||||
// TODO: this should check all missing versions
|
||||
if manifests.map.is_empty() {
|
||||
format!("={}", releases.first_key_value().unwrap().0 .0).parse()?
|
||||
format!("={}", releases.first_key_value().unwrap().0.0).parse()?
|
||||
} else {
|
||||
format!(">={}", semver_versions.last().unwrap()).parse()?
|
||||
}
|
||||
@@ -852,7 +852,9 @@ fn get_license_markdown(spdx_expr: &str, repo: &str, default_branch: &str) -> Op
|
||||
panic!("Unable to find any license files in the repo for licenses {license_ids:?}");
|
||||
}
|
||||
if license_markdowns.len() != len {
|
||||
panic!("Unable to find license files in the repo for all licenses {license_ids:?}; found {license_markdowns:?}");
|
||||
panic!(
|
||||
"Unable to find license files in the repo for all licenses {license_ids:?}; found {license_markdowns:?}"
|
||||
);
|
||||
}
|
||||
match op {
|
||||
None => panic!("op expected"),
|
||||
|
||||
@@ -8,7 +8,7 @@ use std::{
|
||||
|
||||
use anyhow::Result;
|
||||
use fs_err as fs;
|
||||
use install_action_internal_codegen::{workspace_root, BaseManifest, Manifests};
|
||||
use install_action_internal_codegen::{BaseManifest, Manifests, workspace_root};
|
||||
|
||||
const HEADER: &str = "# Tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user