mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-01 03:00:26 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5737265abf | ||
|
|
c889a9389c | ||
|
|
979f068989 | ||
|
|
d5486e05e3 |
1
.github/.cspell/organization-dictionary.txt
vendored
1
.github/.cspell/organization-dictionary.txt
vendored
@@ -51,6 +51,7 @@ gnuspe
|
|||||||
gnux
|
gnux
|
||||||
illumos
|
illumos
|
||||||
imac
|
imac
|
||||||
|
loongarch
|
||||||
macabi
|
macabi
|
||||||
mipsel
|
mipsel
|
||||||
mipsisa
|
mipsisa
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.3.5] - 2023-02-04
|
||||||
|
|
||||||
|
- Update `cross@latest` to 0.2.5.
|
||||||
|
|
||||||
## [2.3.4] - 2023-01-26
|
## [2.3.4] - 2023-01-26
|
||||||
|
|
||||||
- Update `just@latest` to 1.13.0.
|
- Update `just@latest` to 1.13.0.
|
||||||
@@ -591,7 +595,8 @@ 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.3.4...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.3.5...HEAD
|
||||||
|
[2.3.5]: https://github.com/taiki-e/install-action/compare/v2.3.4...v2.3.5
|
||||||
[2.3.4]: https://github.com/taiki-e/install-action/compare/v2.3.3...v2.3.4
|
[2.3.4]: https://github.com/taiki-e/install-action/compare/v2.3.3...v2.3.4
|
||||||
[2.3.3]: https://github.com/taiki-e/install-action/compare/v2.3.2...v2.3.3
|
[2.3.3]: https://github.com/taiki-e/install-action/compare/v2.3.2...v2.3.3
|
||||||
[2.3.2]: https://github.com/taiki-e/install-action/compare/v2.3.1...v2.3.2
|
[2.3.2]: https://github.com/taiki-e/install-action/compare/v2.3.1...v2.3.2
|
||||||
|
|||||||
@@ -1,10 +1,24 @@
|
|||||||
{
|
{
|
||||||
"template": null,
|
"template": null,
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.2.4"
|
"version": "0.2.5"
|
||||||
},
|
},
|
||||||
"0.2": {
|
"0.2": {
|
||||||
"version": "0.2.4"
|
"version": "0.2.5"
|
||||||
|
},
|
||||||
|
"0.2.5": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"url": "https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-musl.tar.gz",
|
||||||
|
"checksum": "a486cefa6cb486971b97be321ea9dfc2e90c1979550295314a368f53fab6d588"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"url": "https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-apple-darwin.tar.gz",
|
||||||
|
"checksum": "84a664edbd5405efc985e9423804cc63d12e55691b9c7e9729355fdf7b9af015"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"url": "https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-pc-windows-msvc.tar.gz",
|
||||||
|
"checksum": "3d4d6dbebf448b1f6856c662b2b342db0a7f6827e91ed88e2bf0e5ca00a30a81"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.2.4": {
|
"0.2.4": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
@@ -189,17 +189,17 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
eprintln!("downloading {url} for checksum");
|
eprintln!("downloading {url} for checksum...");
|
||||||
let download_cache = download_cache_dir.join(format!(
|
let download_cache = download_cache_dir.join(format!(
|
||||||
"{version}-{platform:?}-{}",
|
"{version}-{platform:?}-{}",
|
||||||
Path::new(&url).file_name().unwrap().to_str().unwrap()
|
Path::new(&url).file_name().unwrap().to_str().unwrap()
|
||||||
));
|
));
|
||||||
if download_cache.is_file() {
|
if download_cache.is_file() {
|
||||||
eprintln!("{url} is already downloaded");
|
eprintln!(" already downloaded");
|
||||||
fs::File::open(download_cache)?.read_to_end(&mut buf)?;
|
fs::File::open(download_cache)?.read_to_end(&mut buf)?;
|
||||||
} else {
|
} else {
|
||||||
download(&url)?.into_reader().read_to_end(&mut buf)?;
|
download(&url)?.into_reader().read_to_end(&mut buf)?;
|
||||||
eprintln!("downloaded complete");
|
eprintln!(" downloaded complete");
|
||||||
fs::write(download_cache, &buf)?;
|
fs::write(download_cache, &buf)?;
|
||||||
}
|
}
|
||||||
eprintln!("getting sha256 hash for {url}");
|
eprintln!("getting sha256 hash for {url}");
|
||||||
|
|||||||
Reference in New Issue
Block a user