Skip to content

Commit

Permalink
build loong64
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Feb 8, 2024
1 parent bfb3a5b commit 82bf6c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ target "all-arch" {
"linux/s390x",
"linux/riscv64",
"linux/386",
"linux/loong64",
]
}

Expand Down
9 changes: 9 additions & 0 deletions hack/install-and-test
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,31 @@ echo $status | jq .supported | grep linux/riscv64
echo $status | jq .supported | grep linux/ppc64le
echo $status | jq .supported | grep linux/386

# TODO: needs https://github.com/moby/buildkit/pull/4392
#echo $status | jq .supported | grep linux/loong64

echo $status | jq .emulators | grep qemu-riscv64
echo $status | jq .emulators | grep qemu-arm
echo $status | jq .emulators | grep qemu-loongarch64

docker run --rm arm64v8/alpine uname -a
docker run --rm arm32v7/alpine uname -a
docker run --rm ppc64le/alpine uname -a
docker run --rm s390x/alpine uname -a
docker run --rm i386/alpine uname -a
docker run --rm tonistiigi/debian:riscv uname -a
docker run --rm yangzewei2023/debian:loongarch64 uname -a

if [ "$(uname -m)" != "x86_64" ]; then exit 0; fi

status=$(docker run --rm --privileged tonistiigi/binfmt:${TAG:-test} --uninstall aarch64,riscv64)

if echo $status | jq .supported | grep linux/arm64; then exit 1; fi
if echo $status | jq .supported | grep linux/riscv64; then exit 1; fi

# TODO: needs https://github.com/moby/buildkit/pull/4392
#if echo $status | jq .supported | grep linux/loong64; then exit 1; fi

echo $status | jq .supported | grep linux/ppc64le
echo $status | jq .supported | grep linux/arm/v7

Expand Down

0 comments on commit 82bf6c8

Please sign in to comment.