mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-11 15:10:24 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb3c62e806 | ||
|
|
2f296ea04f | ||
|
|
ae0e1936a4 | ||
|
|
c4298ca31e |
6
.github/.cspell/organization-dictionary.txt
vendored
6
.github/.cspell/organization-dictionary.txt
vendored
@@ -58,6 +58,7 @@ msvc
|
|||||||
muslabi
|
muslabi
|
||||||
musleabi
|
musleabi
|
||||||
musleabihf
|
musleabihf
|
||||||
|
newlibeabihf
|
||||||
nvptx
|
nvptx
|
||||||
openwrt
|
openwrt
|
||||||
riscv
|
riscv
|
||||||
@@ -92,8 +93,13 @@ punct
|
|||||||
repr
|
repr
|
||||||
rfind
|
rfind
|
||||||
rfold
|
rfold
|
||||||
|
rsplit
|
||||||
splitn
|
splitn
|
||||||
|
supertrait
|
||||||
|
supertraits
|
||||||
|
toolchains
|
||||||
uninit
|
uninit
|
||||||
|
upcastable
|
||||||
|
|
||||||
// Other
|
// Other
|
||||||
connrefused
|
connrefused
|
||||||
|
|||||||
1
.github/.cspell/project-dictionary.txt
vendored
1
.github/.cspell/project-dictionary.txt
vendored
@@ -24,7 +24,6 @@ rockylinux
|
|||||||
rustwasm
|
rustwasm
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
toolchains
|
|
||||||
udeps
|
udeps
|
||||||
wasmtime
|
wasmtime
|
||||||
xscale
|
xscale
|
||||||
|
|||||||
@@ -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.1.3] - 2023-01-09
|
||||||
|
|
||||||
|
- Update `cargo-llvm-cov@latest` to 0.5.4.
|
||||||
|
|
||||||
## [2.1.2] - 2023-01-05
|
## [2.1.2] - 2023-01-05
|
||||||
|
|
||||||
- Diagnostic improvements.
|
- Diagnostic improvements.
|
||||||
@@ -520,7 +524,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.1.2...HEAD
|
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.1.3...HEAD
|
||||||
|
[2.1.3]: https://github.com/taiki-e/install-action/compare/v2.1.2...v2.1.3
|
||||||
[2.1.2]: https://github.com/taiki-e/install-action/compare/v2.1.1...v2.1.2
|
[2.1.2]: https://github.com/taiki-e/install-action/compare/v2.1.1...v2.1.2
|
||||||
[2.1.1]: https://github.com/taiki-e/install-action/compare/v2.1.0...v2.1.1
|
[2.1.1]: https://github.com/taiki-e/install-action/compare/v2.1.0...v2.1.1
|
||||||
[2.1.0]: https://github.com/taiki-e/install-action/compare/v2.0.3...v2.1.0
|
[2.1.0]: https://github.com/taiki-e/install-action/compare/v2.0.3...v2.1.0
|
||||||
|
|||||||
@@ -17,10 +17,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"version": "0.5.3"
|
"version": "0.5.4"
|
||||||
},
|
},
|
||||||
"0.5": {
|
"0.5": {
|
||||||
"version": "0.5.3"
|
"version": "0.5.4"
|
||||||
|
},
|
||||||
|
"0.5.4": {
|
||||||
|
"x86_64_linux_musl": {
|
||||||
|
"checksum": "c4912bb56a25a8ea17bbea843019386d191d789d66d19d3fa70b49fc1efb4599"
|
||||||
|
},
|
||||||
|
"x86_64_macos": {
|
||||||
|
"checksum": "af12ff744aacc5a78e84ac849dd09d8a8babfacb10926a9b32e97bf008624165"
|
||||||
|
},
|
||||||
|
"x86_64_windows": {
|
||||||
|
"checksum": "ff0d031ddd1fb99a7788124b9b6cafe26f29aaffd82481140f763b95d7b7ba8d"
|
||||||
|
},
|
||||||
|
"aarch64_linux_musl": {
|
||||||
|
"checksum": "e730738b882ade2d1a0747ee83baa147cffa30ff286e11b94224e2b68ba3a087"
|
||||||
|
},
|
||||||
|
"aarch64_macos": {
|
||||||
|
"checksum": "a56c6046c7c6eb5030acf0c28b1448e675e072fb7eaa94b8674934d167f6c445"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"0.5.3": {
|
"0.5.3": {
|
||||||
"x86_64_linux_musl": {
|
"x86_64_linux_musl": {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use std::{
|
|||||||
collections::{BTreeMap, BTreeSet},
|
collections::{BTreeMap, BTreeSet},
|
||||||
env, fmt,
|
env, fmt,
|
||||||
io::Read,
|
io::Read,
|
||||||
path::Path,
|
path::{Path, PathBuf},
|
||||||
slice,
|
slice,
|
||||||
str::FromStr,
|
str::FromStr,
|
||||||
time::Duration,
|
time::Duration,
|
||||||
@@ -23,14 +23,14 @@ fn main() -> Result<()> {
|
|||||||
}
|
}
|
||||||
let package = &args[0];
|
let package = &args[0];
|
||||||
|
|
||||||
let root_dir = Path::new(env!("CARGO_MANIFEST_DIR"))
|
let workspace_root = &workspace_root();
|
||||||
.join("../..")
|
let manifest_path = &workspace_root
|
||||||
.canonicalize()?;
|
.join("manifests")
|
||||||
let manifest_path = &root_dir.join("manifests").join(format!("{package}.json"));
|
.join(format!("{package}.json"));
|
||||||
let download_cache_dir = &root_dir.join("tools/codegen/tmp/cache").join(package);
|
let download_cache_dir = &workspace_root.join("tools/codegen/tmp/cache").join(package);
|
||||||
fs::create_dir_all(download_cache_dir)?;
|
fs::create_dir_all(download_cache_dir)?;
|
||||||
let base_info: BaseManifest = serde_json::from_slice(&fs::read(
|
let base_info: BaseManifest = serde_json::from_slice(&fs::read(
|
||||||
root_dir
|
workspace_root
|
||||||
.join("tools/codegen/base")
|
.join("tools/codegen/base")
|
||||||
.join(format!("{package}.json")),
|
.join(format!("{package}.json")),
|
||||||
)?)?;
|
)?)?;
|
||||||
@@ -334,6 +334,13 @@ fn main() -> Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn workspace_root() -> PathBuf {
|
||||||
|
let mut dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||||
|
dir.pop(); // codegen
|
||||||
|
dir.pop(); // tools
|
||||||
|
dir
|
||||||
|
}
|
||||||
|
|
||||||
fn replace_vars(s: &str, package: &str, version: &str, platform: HostPlatform) -> Result<String> {
|
fn replace_vars(s: &str, package: &str, version: &str, platform: HostPlatform) -> Result<String> {
|
||||||
let s = s
|
let s = s
|
||||||
.replace("${package}", package)
|
.replace("${package}", package)
|
||||||
|
|||||||
Reference in New Issue
Block a user