Compare commits

...

2 Commits

Author SHA1 Message Date
Taiki Endo
10b774e4cd Release 2.31.2 2024-03-28 21:43:50 +09:00
Taiki Endo
d5fae932b8 Fix cargo-spellcheck installation (#428) 2024-03-28 21:43:19 +09:00
4 changed files with 18 additions and 13 deletions

View File

@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [2.31.2] - 2024-03-28
- Fix `cargo-spellcheck` installation bug. ([#428](https://github.com/taiki-e/install-action/pull/428))
## [2.31.1] - 2024-03-28
- Update `protoc@latest` to 3.26.1.
@@ -1963,7 +1967,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.31.1...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.31.2...HEAD
[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
[2.30.0]: https://github.com/taiki-e/install-action/compare/v2.29.8...v2.30.0

View File

@@ -2,12 +2,10 @@
"rust_crate": "cargo-spellcheck",
"template": {
"x86_64_linux_gnu": {
"url": "https://github.com/drahnr/cargo-spellcheck/releases/download/v${version}/cargo-spellcheck-v${version}-x86_64-unknown-linux-gnu",
"bin": "cargo-spellcheck-v${version}-x86_64-unknown-linux-gnu"
"url": "https://github.com/drahnr/cargo-spellcheck/releases/download/v${version}/cargo-spellcheck-v${version}-x86_64-unknown-linux-gnu"
},
"x86_64_windows": {
"url": "https://github.com/drahnr/cargo-spellcheck/releases/download/v${version}/cargo-spellcheck-v${version}-x86_64-pc-windows-gnu.exe",
"bin": "cargo-spellcheck-v${version}-x86_64-pc-windows-gnu.exe"
"url": "https://github.com/drahnr/cargo-spellcheck/releases/download/v${version}/cargo-spellcheck-v${version}-x86_64-pc-windows-gnu.exe"
}
},
"latest": {

View File

@@ -3,12 +3,10 @@
"tag_prefix": "v",
"rust_crate": "${package}",
"asset_name": "${package}-v${version}-${rust_target}",
"bin": "${package}-v${version}-${rust_target}",
"version_range": ">= 0.13",
"platform": {
"x86_64_windows": {
"asset_name": "${package}-v${version}-x86_64-pc-windows-gnu.exe",
"bin": "${package}-v${version}-x86_64-pc-windows-gnu.exe"
"asset_name": "${package}-v${version}-x86_64-pc-windows-gnu.exe"
},
"x86_64_linux_gnu": {}
}

View File

@@ -755,12 +755,16 @@ struct BaseManifest {
}
impl BaseManifest {
fn validate(&self) {
if let Some(bin) = &self.bin {
for bin in self.bin.iter().chain(self.platform.values().flat_map(|m| &m.bin)) {
assert!(!bin.as_slice().is_empty());
}
for m in self.platform.values() {
if let Some(bin) = &m.bin {
assert!(!bin.as_slice().is_empty());
for bin in bin.as_slice() {
let file_name = Path::new(bin).file_name().unwrap().to_str().unwrap();
if !self.repository.ends_with("/xbuild") {
assert!(
!(file_name.contains("${version") || file_name.contains("${rust")),
"{bin}"
);
}
}
}
}