Skip to content

Commit

Permalink
platform
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 5, 2024
1 parent 653d8b3 commit 357a062
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ jobs:
include:
- image: "ubuntu-22.04-jammy-arm64v8"
qemu-arch: "aarch64"
platform: "linux/arm64v8"
- image: "ubuntu-24.04-noble-ppc64le"
qemu-arch: "ppc64le"
platform: "linux/ppc64le"
- image: "ubuntu-24.04-noble-s390x"
qemu-arch: "s390x"
platform: "linux/s390x"

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion Makefile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ TEST_IMAGE := $(if $(DOCKER_USERNAME), $(DOCKER_USERNAME)/$(TARGET):$(BRANCH), p
build:
cp -r ../Pillow/depends .
cp test.sh depends
docker build -t $(IMAGENAME):$(BRANCH) --platform linux/ppc64le .
if [ -n "$PLATFORM" ]; then
docker build -t $(IMAGENAME):$(BRANCH) --platform $PLATFORM .
else
docker build -t $(IMAGENAME):$(BRANCH) .
fi

.PHONY: update
update:
Expand Down
2 changes: 1 addition & 1 deletion ubuntu-22.04-jammy-arm64v8/update.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
docker pull --platform linux/arm64v8 arm64v8/ubuntu:jammy
docker pull --platform $PLATFORM arm64v8/ubuntu:jammy
2 changes: 1 addition & 1 deletion ubuntu-24.04-noble-ppc64le/update.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
docker pull --platform linux/ppc64le ppc64le/ubuntu:noble
docker pull --platform $PLATFORM ppc64le/ubuntu:noble
2 changes: 1 addition & 1 deletion ubuntu-24.04-noble-s390x/update.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
docker pull --platform linux/s390x s390x/ubuntu:noble
docker pull --platform $PLATFORM s390x/ubuntu:noble

0 comments on commit 357a062

Please sign in to comment.