mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-30 19:00:25 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b8e18789e | ||
|
|
b90e19d688 | ||
|
|
1f490d2b6e |
@@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.16.1] - 2023-08-22
|
||||
|
||||
- Update `wasmtime@latest` to 12.0.0.
|
||||
|
||||
## [2.16.0] - 2023-08-19
|
||||
|
||||
- Support `cargo-machete`. ([#196](https://github.com/taiki-e/install-action/pull/196), thanks @tgnottingham)
|
||||
@@ -1091,7 +1095,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.16.0...HEAD
|
||||
[Unreleased]: https://github.com/taiki-e/install-action/compare/v2.16.1...HEAD
|
||||
[2.16.1]: https://github.com/taiki-e/install-action/compare/v2.16.0...v2.16.1
|
||||
[2.16.0]: https://github.com/taiki-e/install-action/compare/v2.15.6...v2.16.0
|
||||
[2.15.6]: https://github.com/taiki-e/install-action/compare/v2.15.5...v2.15.6
|
||||
[2.15.5]: https://github.com/taiki-e/install-action/compare/v2.15.4...v2.15.5
|
||||
|
||||
35
manifests/wasmtime.json
generated
35
manifests/wasmtime.json
generated
@@ -2,7 +2,40 @@
|
||||
"rust_crate": "wasmtime-cli",
|
||||
"template": null,
|
||||
"latest": {
|
||||
"version": "11.0.1"
|
||||
"version": "12.0.0"
|
||||
},
|
||||
"12": {
|
||||
"version": "12.0.0"
|
||||
},
|
||||
"12.0": {
|
||||
"version": "12.0.0"
|
||||
},
|
||||
"12.0.0": {
|
||||
"x86_64_linux_gnu": {
|
||||
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v12.0.0/wasmtime-v12.0.0-x86_64-linux.tar.xz",
|
||||
"checksum": "c31e0d8eb2797627ba1f72b313315da960016f87ccec3cce2ae67654060a8f04",
|
||||
"bin": "wasmtime-v12.0.0-x86_64-linux/wasmtime"
|
||||
},
|
||||
"x86_64_macos": {
|
||||
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v12.0.0/wasmtime-v12.0.0-x86_64-macos.tar.xz",
|
||||
"checksum": "27a649593f3106f256c227d26ce8f3d03b360a267d89b094537217104fa05e88",
|
||||
"bin": "wasmtime-v12.0.0-x86_64-macos/wasmtime"
|
||||
},
|
||||
"x86_64_windows": {
|
||||
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v12.0.0/wasmtime-v12.0.0-x86_64-windows.zip",
|
||||
"checksum": "fb0c6e981f2d1997174ef198819091bdca517c20ecd727762e0b38d2643b1b4d",
|
||||
"bin": "wasmtime-v12.0.0-x86_64-windows/wasmtime.exe"
|
||||
},
|
||||
"aarch64_linux_gnu": {
|
||||
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v12.0.0/wasmtime-v12.0.0-aarch64-linux.tar.xz",
|
||||
"checksum": "3693fd9db6ad37e6937c5fdc003f0038bbfde9eec0ad33ee7cc611a85cac29c4",
|
||||
"bin": "wasmtime-v12.0.0-aarch64-linux/wasmtime"
|
||||
},
|
||||
"aarch64_macos": {
|
||||
"url": "https://github.com/bytecodealliance/wasmtime/releases/download/v12.0.0/wasmtime-v12.0.0-aarch64-macos.tar.xz",
|
||||
"checksum": "64d594618e47e0b5b70a3b38c943e6d79c145ea281defef1ad13c92faafc3e8c",
|
||||
"bin": "wasmtime-v12.0.0-aarch64-macos/wasmtime"
|
||||
}
|
||||
},
|
||||
"11": {
|
||||
"version": "11.0.1"
|
||||
|
||||
@@ -112,6 +112,49 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
||||
echo "${new}" >"${lib}"
|
||||
check_diff "${lib}"
|
||||
done
|
||||
# Make sure that public Rust crates don't contain executables.
|
||||
failed_files=''
|
||||
metadata=$(cargo metadata --format-version=1 --all-features --no-deps)
|
||||
has_public_crate=''
|
||||
for id in $(jq <<<"${metadata}" '.workspace_members[]'); do
|
||||
pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")
|
||||
publish=$(jq <<<"${pkg}" -r '.publish')
|
||||
# Publishing is unrestricted if null, and forbidden if an empty array.
|
||||
if [[ "${publish}" == "[]" ]]; then
|
||||
continue
|
||||
fi
|
||||
has_public_crate='1'
|
||||
done
|
||||
if [[ -n "${has_public_crate}" ]]; then
|
||||
info "checking file permissions"
|
||||
if [[ -f Cargo.toml ]] && grep -Eq '^\[package\]' Cargo.toml && ! grep -Eq '^publish = false' Cargo.toml; then
|
||||
if ! grep -Eq '^exclude = \[.*\.\*.*\]' Cargo.toml; then
|
||||
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
|
||||
elif ! grep -Eq '^exclude = \[.*/tools.*\]' Cargo.toml; then
|
||||
error "top-level Cargo.toml of real manifest should have exclude field with \"/.*\" and \"/tools\""
|
||||
fi
|
||||
fi
|
||||
for p in $(git ls-files); do
|
||||
# Skip directories.
|
||||
if [[ -d "${p}" ]]; then
|
||||
continue
|
||||
fi
|
||||
# Top-level hidden files/directories and tools/* are excluded from crates.io (ensured by the above check).
|
||||
# TODO: fully respect exclude field in Cargo.toml.
|
||||
case "${p}" in
|
||||
.* | tools/*) continue ;;
|
||||
esac
|
||||
if [[ -x "${p}" ]]; then
|
||||
failed_files+="${p}"$'\n'
|
||||
fi
|
||||
done
|
||||
if [[ -n "${failed_files}" ]]; then
|
||||
error "file-permissions-check failed: executable should be in tools/ directory"
|
||||
echo "======================================="
|
||||
echo -n "${failed_files}"
|
||||
echo "======================================="
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# C/C++ (if exists)
|
||||
|
||||
Reference in New Issue
Block a user