mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-08 18:05:42 +08:00
Support cargo-deb
This commit is contained in:
@@ -8,6 +8,7 @@ cd -- "$(dirname -- "$0")"/../..
|
||||
# They don't provide prebuilt binaries for musl or old glibc host.
|
||||
# version `GLIBC_2.35' not found
|
||||
glibc_pre_2_39_incompat=(
|
||||
cargo-deb
|
||||
zizmor
|
||||
)
|
||||
glibc_pre_2_35_incompat=(
|
||||
@@ -116,6 +117,9 @@ case "$(uname -s)" in
|
||||
if [[ "${runner}" == "ubuntu:14.04" ]]; then
|
||||
incompat_tools+=(cyclonedx)
|
||||
fi
|
||||
if [[ "${runner}" == "almalinux:10"* ]]; then
|
||||
incompat_tools+=(cargo-deb) # no dpkg in package manager
|
||||
fi
|
||||
;;
|
||||
Darwin) host_os=macos ;;
|
||||
MINGW* | MSYS* | CYGWIN* | Windows_NT) host_os=windows ;;
|
||||
|
||||
12
tools/codegen/base/cargo-deb.json
Normal file
12
tools/codegen/base/cargo-deb.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"repository": "https://github.com/kornelski/cargo-deb",
|
||||
"license_markdown": "[MIT](https://github.com/kornelski/cargo-deb/blob/main/LICENSE)",
|
||||
"tag_prefix": "v",
|
||||
"rust_crate": "${package}",
|
||||
"platform": {
|
||||
"x86_64_linux_gnu": {
|
||||
"asset_name": "${package}_${version}-1_amd64.deb",
|
||||
"bin": "usr/bin/${package}"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user