feat: linux powerpc (ppc64le) and s390x targets (#159)
- linux/ppc64le (powerpc64le-unknown-linux-gnu)
- linux/s390x (s390x-unknown-linux-gnu)
Diff
.github/workflows/devel.docker.yml | 4 ++++
.github/workflows/devel.yml | 14 ++++++++++++--
.github/workflows/release.docker.yml | 6 +++---
.github/workflows/release.yml | 10 ++++++++++
docker/alpine/Dockerfile | 2 ++
docker/debian/Dockerfile | 2 ++
6 files changed, 33 insertions(+), 5 deletions(-)
@@ -23,6 +23,8 @@ jobs:
- linux/arm64
- linux/arm/v7
- linux/arm/v6
- linux/ppc64le
- linux/s390x
runs-on: ubuntu-22.04
services:
registry:
@@ -136,6 +138,8 @@ jobs:
- linux/arm64
- linux/arm/v7
- linux/arm/v6
- linux/ppc64le
- linux/s390x
runs-on: ubuntu-22.04
services:
registry:
@@ -45,6 +45,8 @@ jobs:
- linux-arm-gnueabihf
- linux-musl-armv6
- linux-musl-armv7
- linux-ppc64le
- linux-s390x
- linux-android-arm64
@@ -105,6 +107,14 @@ jobs:
os: ubuntu-22.04
rust: stable
target: armv7-unknown-linux-musleabihf
- build: linux-ppc64le
os: ubuntu-22.04
rust: stable
target: powerpc64le-unknown-linux-gnu
- build: linux-s390x
os: ubuntu-22.04
rust: stable
target: s390x-unknown-linux-gnu
@@ -206,8 +216,8 @@ jobs:
shell: bash
run: |
case "${{ matrix.build }}" in
*-arm*|*bsd*|*illumos*)
echo "arm(64)s or BSDs are unable to execute on CI for now!"
*-arm*|*bsd*|*illumos*|*ppc64*|*s390x*)
echo "arm,bsd,illumos,ppc64,s390x are unable to execute on CI for now!"
;;
*)
if [[ "${{ matrix.os }}" == "windows-2022" ]]; then
@@ -59,7 +59,7 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x
file: ./docker/alpine/Dockerfile
tags: ${{ steps.meta_alpine.outputs.tags }}
build-args: |
@@ -120,7 +120,7 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x
file: ./docker/debian/Dockerfile
tags: ${{ steps.meta_debian.outputs.tags }}
build-args: |
@@ -177,7 +177,7 @@ jobs:
with:
push: true
context: .
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x
file: ./docker/scratch/Dockerfile
tags: ${{ steps.meta_scratch.outputs.tags }}
build-args: |
@@ -58,6 +58,8 @@ jobs:
- linux-arm-gnueabihf
- linux-musl-armv6
- linux-musl-armv7
- linux-ppc64le
- linux-s390x
- linux-android-arm64
- netbsd
@@ -105,6 +107,14 @@ jobs:
os: ubuntu-22.04
rust: stable
target: armv7-unknown-linux-musleabihf
- build: linux-ppc64le
os: ubuntu-22.04
rust: stable
target: powerpc64le-unknown-linux-gnu
- build: linux-s390x
os: ubuntu-22.04
rust: stable
target: s390x-unknown-linux-gnu
@@ -12,6 +12,8 @@ RUN set -ex; \
"linux/386") target='i686-unknown-linux-musl' ;; \
"linux/arm/v7") target='armv7-unknown-linux-musleabihf' ;; \
"linux/arm/v6") target='arm-unknown-linux-musleabihf' ;; \
"linux/ppc64le") target='powerpc64le-unknown-linux-gnu' ;; \
"linux/s390x") target='s390x-unknown-linux-gnu' ;; \
*) echo >&2 "error: unsupported $TARGETPLATFORM architecture"; exit 1 ;; \
esac; \
wget --quiet -O /tmp/static-web-server.tar.gz "https://github.com/static-web-server/static-web-server/releases/download/v${SERVER_VERSION}/static-web-server-v${SERVER_VERSION}-${target}.tar.gz"; \
@@ -20,6 +20,8 @@ RUN set -ex \
"linux/386") target='i686-unknown-linux-musl' ;; \
"linux/arm/v7") target='armv7-unknown-linux-musleabihf' ;; \
"linux/arm/v6") target='arm-unknown-linux-musleabihf' ;; \
"linux/ppc64le") target='powerpc64le-unknown-linux-gnu' ;; \
"linux/s390x") target='s390x-unknown-linux-gnu' ;; \
*) echo >&2 "error: unsupported $TARGETPLATFORM architecture"; exit 1 ;; \
esac \
&& curl -Lo /tmp/static-web-server.tar.gz \