8000 More multi arch adjustments · sudo-bot/docker-rustpython@2f84740 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f84740

Browse files
committed
More multi arch adjustments
1 parent dea5c31 commit 2f84740

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
max-parallel: 4
1414
matrix:
15-
platform: ["linux/amd64", "linux/arm/v6", "linux/arm/v7", "linux/arm64/v8", "linux/386", "linux/ppc64le", "linux/s390x"]
15+
platform: ["linux/amd64", "linux/arm64/v8", "linux/386", "linux/ppc64le", "linux/s390x"]
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v3

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
IMAGE_TAG ?= docker-rustpython
22
# All: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le,linux/ppc64le,linux/s390x
33
# Supported by rust (Debian variant, alpine has 2 less): linux/386,linux/amd64,linux/arm/v7,linux/arm64/v8
4-
# Supported by alpine: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
4+
# Supported by alpine: linux/386,linux/amd64,linux/s390x
5+
# Fails to build: linux/ppc64le,linux/arm64/v8
6+
# Fails to fetch doc git crate: linux/arm/v6,linux/arm/v7
57
PLATFORM ?= linux/amd64
68

79
ACTION ?= load

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN sed -i 's#{ git = .*#{ path = "/workdir/rp__doc__/" }#' /workdir/derive-impl
2525

2626
RUN cargo fetch
2727

28-
RUN uname -m && cargo build --features freeze-stdlib --release --locked --offline --bin rustpython
28+
RUN if [ "$(uname -m)" != "ppc64le" ] && [ "$(uname -m)" != "s390x" ] && [ "$(uname -m)" != "aarch64" ]; then cargo build --features freeze-stdlib --release --locked --offline --bin rustpython; else cargo build --release --locked --offline --bin rustpython; fi
2929

3030
FROM alpine:3.17
3131

0 commit comments

Comments
 (0)
0