Compare commits

...

5 Commits

Author SHA1 Message Date
Taiki Endo
0e17f1a035 Release 2.20.17 2023-10-27 10:34:27 +09:00
Taiki Endo
5fce684c96 Add wasmtime 13.0.1,11.0.2,10.0.2 2023-10-27 10:30:56 +09:00
Taiki Endo
6326b163e5 Update wasmtime@latest to 14.0.2 2023-10-27 03:09:53 +09:00
Taiki Endo
077e998f78 tools: Retry in publish.sh 2023-10-25 00:13:32 +09:00
Taiki Endo
6bb3a496f8 codegen: Use toml_edit directly 2023-10-25 00:12:46 +09:00
5 changed files with 143 additions and 19 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.20.17] - 2023-10-27
- Update `wasmtime@latest` to 14.0.2.
## [2.20.16] - 2023-10-23
- Update `wasmtime@latest` to 14.0.1.
@@ -1359,7 +1363,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.20.16...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.20.17...HEAD
[2.20.17]: https://github.com/taiki-e/install-action/compare/v2.20.16...v2.20.17
[2.20.16]: https://github.com/taiki-e/install-action/compare/v2.20.15...v2.20.16
[2.20.15]: https://github.com/taiki-e/install-action/compare/v2.20.14...v2.20.15
[2.20.14]: https://github.com/taiki-e/install-action/compare/v2.20.13...v2.20.14

126
manifests/wasmtime.json generated
View File

@@ -2,13 +2,40 @@
"rust_crate": "wasmtime-cli",
"template": null,
"latest": {
"version": "14.0.1"
"version": "14.0.2"
},
"14": {
"version": "14.0.1"
"version": "14.0.2"
},
"14.0": {
"version": "14.0.1"
"version": "14.0.2"
},
"14.0.2": {
"x86_64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.2/wasmtime-v14.0.2-x86_64-linux.tar.xz",
"checksum": "880827d58ee9224225e06f3cda1dda1df2685569b29a07596c5ddb1c382c998b",
"bin": "wasmtime-v14.0.2-x86_64-linux/wasmtime"
},
"x86_64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.2/wasmtime-v14.0.2-x86_64-macos.tar.xz",
"checksum": "b13a78310e78a7acea9d9667aaec896115b293eca5700dcd74764a5521431d33",
"bin": "wasmtime-v14.0.2-x86_64-macos/wasmtime"
},
"x86_64_windows": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.2/wasmtime-v14.0.2-x86_64-windows.zip",
"checksum": "8edf2a37fcb4504a59bccf63fd9e4110d28a5ebb6cf9363267bd584094e81aab",
"bin": "wasmtime-v14.0.2-x86_64-windows/wasmtime.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.2/wasmtime-v14.0.2-aarch64-linux.tar.xz",
"checksum": "877dff2c4c619f6ba44691b4ef44a6b89163ba34d47c9a785cc45ff207abd1fe",
"bin": "wasmtime-v14.0.2-aarch64-linux/wasmtime"
},
"aarch64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.2/wasmtime-v14.0.2-aarch64-macos.tar.xz",
"checksum": "d1de12a057122c3c15b755469b24f41448aa0b9bbe46f35eb740054a295e386e",
"bin": "wasmtime-v14.0.2-aarch64-macos/wasmtime"
}
},
"14.0.1": {
"x86_64_linux_gnu": {
@@ -65,10 +92,37 @@
}
},
"13": {
"version": "13.0.0"
"version": "13.0.1"
},
"13.0": {
"version": "13.0.0"
"version": "13.0.1"
},
"13.0.1": {
"x86_64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.1/wasmtime-v13.0.1-x86_64-linux.tar.xz",
"checksum": "65c98b4165d49e5d85fe189c99586c919f6f5d97d307debf02ead9ac239c9637",
"bin": "wasmtime-v13.0.1-x86_64-linux/wasmtime"
},
"x86_64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.1/wasmtime-v13.0.1-x86_64-macos.tar.xz",
"checksum": "210fa2a44460df64a44e13683438cf22036faced14fa77295d50e6a181d853ee",
"bin": "wasmtime-v13.0.1-x86_64-macos/wasmtime"
},
"x86_64_windows": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.1/wasmtime-v13.0.1-x86_64-windows.zip",
"checksum": "38992da8e4d41fa3391465afdd12d625f8b7e9883787354486dd80009f226979",
"bin": "wasmtime-v13.0.1-x86_64-windows/wasmtime.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.1/wasmtime-v13.0.1-aarch64-linux.tar.xz",
"checksum": "fbc5ae03a1289aef4c712580e3f6d41cb9e5c1444149f6caa4cdfb766dd452f1",
"bin": "wasmtime-v13.0.1-aarch64-linux/wasmtime"
},
"aarch64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.1/wasmtime-v13.0.1-aarch64-macos.tar.xz",
"checksum": "4f766d93491dd4611063aec55fd723c348f94d0e847a7f5122a825e38783ecbd",
"bin": "wasmtime-v13.0.1-aarch64-macos/wasmtime"
}
},
"13.0.0": {
"x86_64_linux_gnu": {
@@ -185,10 +239,37 @@
}
},
"11": {
"version": "11.0.1"
"version": "11.0.2"
},
"11.0": {
"version": "11.0.1"
"version": "11.0.2"
},
"11.0.2": {
"x86_64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v11.0.2/wasmtime-v11.0.2-x86_64-linux.tar.xz",
"checksum": "71d67b23ba4e6a1a589dcfe0658fd7125b5ceb5953481f90611c616ba1dd8986",
"bin": "wasmtime-v11.0.2-x86_64-linux/wasmtime"
},
"x86_64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v11.0.2/wasmtime-v11.0.2-x86_64-macos.tar.xz",
"checksum": "b039ce32979d61c9e8d3dd82fa18d900954ee91f160666066d5353a1eb5a15b7",
"bin": "wasmtime-v11.0.2-x86_64-macos/wasmtime"
},
"x86_64_windows": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v11.0.2/wasmtime-v11.0.2-x86_64-windows.zip",
"checksum": "a5b3e795ec242a4c38184b4ce7d4239a8878985338e1afa7c33dbc86bd0f8b43",
"bin": "wasmtime-v11.0.2-x86_64-windows/wasmtime.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v11.0.2/wasmtime-v11.0.2-aarch64-linux.tar.xz",
"checksum": "d1d628721c3d8b36d7d19b396b25d5b8d6f2a97f6e7b48f31913893b280a1b90",
"bin": "wasmtime-v11.0.2-aarch64-linux/wasmtime"
},
"aarch64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v11.0.2/wasmtime-v11.0.2-aarch64-macos.tar.xz",
"checksum": "2654ef8ad5c7f64c9c9cf0a4d7b50592785d3402329ca84e0e65e35896293c7a",
"bin": "wasmtime-v11.0.2-aarch64-macos/wasmtime"
}
},
"11.0.1": {
"x86_64_linux_gnu": {
@@ -245,10 +326,37 @@
}
},
"10": {
"version": "10.0.1"
"version": "10.0.2"
},
"10.0": {
"version": "10.0.1"
"version": "10.0.2"
},
"10.0.2": {
"x86_64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v10.0.2/wasmtime-v10.0.2-x86_64-linux.tar.xz",
"checksum": "08b0e924918ff7409ccec14475c753f991e6ef535e2875a1a48c89dbfc85162d",
"bin": "wasmtime-v10.0.2-x86_64-linux/wasmtime"
},
"x86_64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v10.0.2/wasmtime-v10.0.2-x86_64-macos.tar.xz",
"checksum": "2fb77c2ee05ac5c902f0bf57d7f8ab1f876bfd4f3c57c1fbbd36c97f60a8c798",
"bin": "wasmtime-v10.0.2-x86_64-macos/wasmtime"
},
"x86_64_windows": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v10.0.2/wasmtime-v10.0.2-x86_64-windows.zip",
"checksum": "3ca5fd7b4f6251e1b183d287dee08d6c38786f5ffb7dd313dda5b1672b7c2456",
"bin": "wasmtime-v10.0.2-x86_64-windows/wasmtime.exe"
},
"aarch64_linux_gnu": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v10.0.2/wasmtime-v10.0.2-aarch64-linux.tar.xz",
"checksum": "15ab7c7650499200729f3514d9232f848b304485fe60add47e22fc6c55629d48",
"bin": "wasmtime-v10.0.2-aarch64-linux/wasmtime"
},
"aarch64_macos": {
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v10.0.2/wasmtime-v10.0.2-aarch64-macos.tar.xz",
"checksum": "e2c66ca8ec6cf5999c93a3823a187e7cfba9225a06027922e9ed7f1fe6d86f5a",
"bin": "wasmtime-v10.0.2-aarch64-macos/wasmtime"
}
},
"10.0.1": {
"x86_64_linux_gnu": {

View File

@@ -15,5 +15,5 @@ serde_derive = "1"
serde_json = "1"
sha2 = "0.10"
tar = "0.4"
toml = "0.8"
toml_edit = { version = "0.20", features = ["serde"] }
ureq = { version = "2", features = ["json"] }

View File

@@ -146,6 +146,7 @@ fn main() -> Result<()> {
}
let req = if version_req == "latest" {
// TODO: this should check all missing versions
if manifests.map.is_empty() {
format!("={}", releases.first_key_value().unwrap().0 .0).parse()?
} else {
@@ -269,7 +270,7 @@ fn main() -> Result<()> {
eprintln!("download complete");
}
if pubkey.is_none() {
let cargo_manifest = toml::from_str::<cargo_manifest::Manifest>(
let cargo_manifest = toml_edit::de::from_str::<cargo_manifest::Manifest>(
&fs::read_to_string(crate_download_cache)?,
)?;
eprintln!(

View File

@@ -23,6 +23,16 @@ x() {
"${cmd}" "$@"
)
}
retry() {
for i in {1..10}; do
if "$@"; then
return 0
else
sleep "${i}"
fi
done
"$@"
}
bail() {
echo >&2 "error: $*"
exit 1
@@ -113,15 +123,15 @@ tools+=(valgrind nextest cargo-nextest)
set -x
git tag "${tag}"
git push origin main
git push origin --tags
retry git push origin main
retry git push origin --tags
major_version_tag="v${version%%.*}"
git checkout -b "${major_version_tag}"
git push origin refs/heads/"${major_version_tag}"
retry git push origin refs/heads/"${major_version_tag}"
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
git tag -d "${major_version_tag}"
git push --delete origin refs/tags/"${major_version_tag}"
retry git push --delete origin refs/tags/"${major_version_tag}"
fi
git tag "${major_version_tag}"
git checkout main
@@ -136,10 +146,10 @@ for tool in "${tools[@]}"; do
sed -i -e "s/# default: #publish:tool/default: ${tool}/g" action.yml
git add action.yml
git commit -m "${tool}"
git push origin -f refs/heads/"${tool}"
retry git push origin -f refs/heads/"${tool}"
if git --no-pager tag | grep -Eq "^${tool}$"; then
git tag -d "${tool}"
git push --delete origin refs/tags/"${tool}"
retry git push --delete origin refs/tags/"${tool}"
fi
git tag "${tool}"
git checkout main
@@ -149,4 +159,4 @@ done
set -x
git push origin --tags
retry git push origin --tags