mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-16 20:50:25 +00:00
Add support for 64-bit ARM binary (#1774)
This commit is contained in:
parent
e743ea3f5f
commit
8ec86dfee4
2 changed files with 4 additions and 3 deletions
1
.github/workflows/release-binary.yml
vendored
1
.github/workflows/release-binary.yml
vendored
|
|
@ -47,6 +47,7 @@ jobs:
|
|||
- arm-unknown-linux-musleabi
|
||||
- arm-unknown-linux-musleabihf
|
||||
- aarch64-unknown-linux-gnu
|
||||
- aarch64-unknown-linux-musl
|
||||
# See https://github.com/briansmith/ring/issues/562
|
||||
# - mips-unknown-linux-musl
|
||||
# - mipsel-unknown-linux-musl
|
||||
|
|
|
|||
|
|
@ -5,15 +5,15 @@ ARG LYCHEE_VERSION="latest"
|
|||
|
||||
RUN apk add --no-cache ca-certificates jq wget \
|
||||
&& ARCH=$(case $(arch) in \
|
||||
"x86_64") echo "x86_64-unknown-linux-musl";; \
|
||||
"aarch64") echo "arm-unknown-linux-musleabihf";; \
|
||||
"amd64") echo "x86_64";; \
|
||||
"arm64") echo "aarch64";; \
|
||||
*) echo "Unsupported architecture" && exit 1;; \
|
||||
esac) \
|
||||
&& BASE_URL=$(case $LYCHEE_VERSION in \
|
||||
"latest" | "nightly") echo "https://github.com/lycheeverse/lychee/releases/latest/download";; \
|
||||
*) echo "https://github.com/lycheeverse/lychee/releases/download/$LYCHEE_VERSION";; \
|
||||
esac) \
|
||||
&& wget -4 -q -O - "$BASE_URL/lychee-$ARCH.tar.gz" | tar -xz lychee \
|
||||
&& wget -q -O - "$BASE_URL/lychee-$ARCH-unknown-linux-musl.tar.gz" | tar -xz lychee \
|
||||
&& chmod +x lychee
|
||||
|
||||
FROM alpine:latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue