Compare commits

..

4 Commits

Author SHA1 Message Date
Taiki Endo
fb3c62e806 Release 2.1.3 2023-01-09 20:48:39 +09:00
Taiki Endo
2f296ea04f Update cargo-llvm-cov@latest to 0.5.4 2023-01-09 20:44:45 +09:00
Taiki Endo
ae0e1936a4 Tweak codegen 2023-01-07 21:09:43 +09:00
Taiki Endo
c4298ca31e Update cspell dictionary 2023-01-07 21:03:01 +09:00
5 changed files with 45 additions and 11 deletions

View File

@@ -58,6 +58,7 @@ msvc
muslabi
musleabi
musleabihf
newlibeabihf
nvptx
openwrt
riscv
@@ -92,8 +93,13 @@ punct
repr
rfind
rfold
rsplit
splitn
supertrait
supertraits
toolchains
uninit
upcastable
// Other
connrefused

View File

@@ -24,7 +24,6 @@ rockylinux
rustwasm
shellcheck
shfmt
toolchains
udeps
wasmtime
xscale

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.1.3] - 2023-01-09
- Update `cargo-llvm-cov@latest` to 0.5.4.
## [2.1.2] - 2023-01-05
- Diagnostic improvements.
@@ -520,7 +524,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.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.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

View File

@@ -17,10 +17,27 @@
}
},
"latest": {
"version": "0.5.3"
"version": "0.5.4"
},
"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": {
"x86_64_linux_musl": {

View File

@@ -7,7 +7,7 @@ use std::{
collections::{BTreeMap, BTreeSet},
env, fmt,
io::Read,
path::Path,
path::{Path, PathBuf},
slice,
str::FromStr,
time::Duration,
@@ -23,14 +23,14 @@ fn main() -> Result<()> {
}
let package = &args[0];
let root_dir = Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../..")
.canonicalize()?;
let manifest_path = &root_dir.join("manifests").join(format!("{package}.json"));
let download_cache_dir = &root_dir.join("tools/codegen/tmp/cache").join(package);
let workspace_root = &workspace_root();
let manifest_path = &workspace_root
.join("manifests")
.join(format!("{package}.json"));
let download_cache_dir = &workspace_root.join("tools/codegen/tmp/cache").join(package);
fs::create_dir_all(download_cache_dir)?;
let base_info: BaseManifest = serde_json::from_slice(&fs::read(
root_dir
workspace_root
.join("tools/codegen/base")
.join(format!("{package}.json")),
)?)?;
@@ -334,6 +334,13 @@ fn main() -> Result<()> {
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> {
let s = s
.replace("${package}", package)