mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-27 01:20:28 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44dc3aa61a | ||
|
|
59a26c9c82 | ||
|
|
d5555e1625 | ||
|
|
fb3c62e806 | ||
|
|
2f296ea04f | ||
|
|
ae0e1936a4 | ||
|
|
c4298ca31e |
6
.github/.cspell/organization-dictionary.txt
vendored
6
.github/.cspell/organization-dictionary.txt
vendored
@@ -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
|
||||
|
||||
1
.github/.cspell/project-dictionary.txt
vendored
1
.github/.cspell/project-dictionary.txt
vendored
@@ -24,7 +24,6 @@ rockylinux
|
||||
rustwasm
|
||||
shellcheck
|
||||
shfmt
|
||||
toolchains
|
||||
udeps
|
||||
wasmtime
|
||||
xscale
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -30,7 +30,8 @@ jobs:
|
||||
- ubuntu-22.04
|
||||
tool:
|
||||
# cargo-watch is supported by cargo-binstall (through quickinstall)
|
||||
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cargo-deny,cross,dprint,just,nextest,protoc,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch,grcov
|
||||
# TODO: valgrind installation sometime hangs.
|
||||
- cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cargo-deny,cross,dprint,just,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch,grcov
|
||||
include:
|
||||
# Note: Specifying the version of valgrind and cargo-binstall is not supported.
|
||||
- os: ubuntu-20.04
|
||||
|
||||
12
CHANGELOG.md
12
CHANGELOG.md
@@ -10,6 +10,14 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.1.4] - 2023-01-10
|
||||
|
||||
- Update `cargo-llvm-cov@latest` to 0.5.5.
|
||||
|
||||
## [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 +528,9 @@ 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.4...HEAD
|
||||
[2.1.4]: https://github.com/taiki-e/install-action/compare/v2.1.3...v2.1.4
|
||||
[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
|
||||
|
||||
@@ -17,10 +17,44 @@
|
||||
}
|
||||
},
|
||||
"latest": {
|
||||
"version": "0.5.3"
|
||||
"version": "0.5.5"
|
||||
},
|
||||
"0.5": {
|
||||
"version": "0.5.3"
|
||||
"version": "0.5.5"
|
||||
},
|
||||
"0.5.5": {
|
||||
"x86_64_linux_musl": {
|
||||
"checksum": "58f459604beef46eff43d14fc41cb39437a2834bece9b91823cafce7a3e91428"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"checksum": "870334436497fa4ec5aea8ca353688881ad9f8f6cc4ad61c4837de1f078d637b"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"checksum": "107581052c1978caa9c485d3c3b41e60ed9d335023434e4af1be51a1e0cac458"
|
||||
},
|
||||
"aarch64_linux_musl": {
|
||||
"checksum": "a48b20d8f7ebf35949ba6e3419106afdfe638d1527ffeb5945385d51c82a443d"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"checksum": "00abbc5db882b766d92c08a7069902cbe3f183af066a42bf079f954fc32f3c29"
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user