Compare commits

...

12 Commits

Author SHA1 Message Date
Taiki Endo
a3bd4a6f9c Release 2.49.2 2025-02-25 09:17:00 +09:00
Taiki Endo
a124e0a223 Update sccache@latest to 0.10.0 2025-02-25 06:13:23 +09:00
Taiki Endo
77262c00ec Update cargo-machete@latest to 0.8.0 2025-02-25 06:13:23 +09:00
Taiki Endo
ae97ff9daf Release 2.49.1 2025-02-24 18:50:52 +09:00
Taiki Endo
4226e24080 Update cargo-deny@latest to 0.18.0 2025-02-24 18:44:52 +09:00
Taiki Endo
e03236526a Release 2.49.0 2025-02-24 03:58:48 +09:00
Taiki Endo
7cd5fd4051 Update changelog 2025-02-24 03:58:09 +09:00
Taiki Endo
bfd7aadad6 Allow installing pre-release versions using binstall 2025-02-24 03:57:25 +09:00
Taiki Endo
011a3fc5ce rustfmt: set style_edition = "2024" 2025-02-23 22:32:18 +09:00
Taiki Endo
eb454bad93 Release 2.48.22 2025-02-23 13:39:07 +09:00
Taiki Endo
d041e4befe Update cargo-binstall@latest to 1.11.1 2025-02-23 13:22:51 +09:00
Taiki Endo
1f8ff2cc46 Update release-plz@latest to 0.3.122 2025-02-23 06:12:03 +09:00
10 changed files with 191 additions and 30 deletions

View File

@@ -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

View File

@@ -10,6 +10,26 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [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.
- Update `release-plz@latest` to 0.3.122.
## [2.48.21] - 2025-02-22
- Update `wasmtime@latest` to 30.0.1.
@@ -3548,7 +3568,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.48.21...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.49.2...HEAD
[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
[2.48.19]: https://github.com/taiki-e/install-action/compare/v2.48.18...v2.48.19

View File

@@ -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

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.11.0"
"version": "1.11.1"
},
"1.11.0": {
"1.11.1": {
"x86_64_linux_musl": {
"etag": "0x8DD4DA50EF05FF4",
"checksum": "1d9afc284393a341d7c6317101c0f208d8fad9f7a2ed6f1853628cc5c1403b7d"
"etag": "0x8DD53AD432C0E1E",
"checksum": "e4ee181b2d8fc814b340f5da849dd67acfc985b18c92bcd654c9d223d205e4d5"
},
"x86_64_macos": {
"etag": "0x8DD4DA4AFD6B7B5",
"checksum": "89b3c2e847ba3edd2e016850d1223c5df3743d5c801f08c60da64d39dd4cc8d6"
"etag": "0x8DD53AD12F83C0F",
"checksum": "fca395de3047f7868c3b57d7563a8342b2b446b0c6839509527fff56e2156068"
},
"x86_64_windows": {
"etag": "0x8DD4DA60C2A3B51",
"checksum": "0cd260738ea30032c0c0a6eeb446cfe5c5ec5974323d7a2a031da1fd10c7760d"
"etag": "0x8DD53AE25C0C75B",
"checksum": "b092d9f1dea240fb7269e25bd097575fd8bd7b0acd9b44cf5319e5a52adb9952"
},
"aarch64_linux_musl": {
"etag": "0x8DD4DA478073A0E",
"checksum": "0023091a41560dd8f948f401c21401d036e42408e7183e62017b6b90b5973b7c"
"etag": "0x8DD53ACE9F477BA",
"checksum": "096f2d7afb87856f58a8c95a5a99130b60ad2763f38378c62b1ffa3ec8e93c1f"
},
"aarch64_macos": {
"etag": "0x8DD4DA4E6F4CEBC",
"checksum": "bd746c656e5cc9820fb277b442f438127bc461c52f20500452b845a767d15322"
"etag": "0x8DD53AD22027CC8",
"checksum": "2837ffc3ad798eec1629638ed43ca85a52abf9d0db5ab38d498d803fd65c38c3"
},
"aarch64_windows": {
"etag": "0x8DD4DA5B9D4FBEE",
"checksum": "80fc65c0bd700e68489244b60b67cf88bc5f5c50eccc337d8d79e7a81a7b5383"
"etag": "0x8DD53ADFC1A99F6",
"checksum": "d675ea21614f99482569f4bae2a24cd312b98755c8f3708766baa7cb502b640b"
}
}
}

View File

@@ -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"

View File

@@ -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"

View File

@@ -22,10 +22,62 @@
},
"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.120"
"version": "0.3.122"
},
"0.3": {
"version": "0.3.120"
"version": "0.3.122"
},
"0.3.122": {
"x86_64_linux_musl": {
"etag": "0x8DD537551B92DC7",
"checksum": "c2d96cccacc03dcfa29d8300bd2acaab1a5e2cab25952d0e4b1d131918ad756a"
},
"x86_64_macos": {
"etag": "0x8DD5375D4F795CB",
"checksum": "eb08314c438a6a4af29dcb574a32ae140156c0f084e46273680660af6dafa082"
},
"x86_64_windows": {
"etag": "0x8DD537619A1C1AF",
"checksum": "74f4d5bc392c2f4cff7fd32d7241ccb8a5531cf60b180e435b22f4a5fe2716b9"
},
"aarch64_linux_musl": {
"etag": "0x8DD53755C4828BF",
"checksum": "1ca3021665e381bda6d10b5e91e24773141e62a6559a2b09d59f558c47977ce8"
},
"aarch64_macos": {
"etag": "0x8DD5375C9894846",
"checksum": "2ad90e487ce5fa010b3349606e6c8d8be483fc9a09cf5853b77c205f0a1cdfb1"
},
"aarch64_windows": {
"etag": "0x8DD53761D58537A",
"checksum": "34feea582a64a179ea9a03824c65299132a557ef7db2c3edba18420195e99e04"
}
},
"0.3.121": {
"x86_64_linux_musl": {
"etag": "0x8DD536DECC2FBC1",
"checksum": "8efd266e4254dc3caf75788645d99df96dfaa6e89ae0370846667f997389ac93"
},
"x86_64_macos": {
"etag": "0x8DD536E8F265D59",
"checksum": "90d89d597cdd4eaa72472ef7f7b07bd691bff98343b155bd3880d5eb5547c8b3"
},
"x86_64_windows": {
"etag": "0x8DD536E96DF0255",
"checksum": "3e896b61d4c98cdf24435df5f6670cc884cfe376e75406f1bcc2e953947591a6"
},
"aarch64_linux_musl": {
"etag": "0x8DD536DFC95334C",
"checksum": "1b4a5a41e473cda09fd07bfb2041dc26172b976a797e341a26b7f1b9b607697c"
},
"aarch64_macos": {
"etag": "0x8DD536E3D04F1FB",
"checksum": "26f81aeee258a3f2dc071bebd82e4c829e1c00f8d0c3c4179880ad2d49012eba"
},
"aarch64_windows": {
"etag": "0x8DD536EA3C7BF48",
"checksum": "eeb321d688421ff73aed37652d7bec2eb68e9399f9bed6f215bed6409c6c6453"
}
},
"0.3.120": {
"x86_64_linux_musl": {

31
manifests/sccache.json generated
View File

@@ -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"

View File

@@ -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"),

View File

@@ -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