8000 Try a workaround for armv6 and armv7 · sudo-bot/docker-rustpython@f33bd2c · GitHub
[go: up one dir, main page]

Skip to content

Commit f33bd2c

Browse files
committed
Try a workaround for armv6 and armv7
See: pyca/cryptography#6673 (comment) See: rust-lang/cargo#6513
1 parent 40c800a commit f33bd2c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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/arm64/v8", "linux/386", "linux/ppc64le", "linux/s390x"]
15+
platform: ["linux/arm/v6", "linux/arm/v7", "linux/arm64/v8", "linux/386", "linux/ppc64le", "linux/amd64", "linux/s390x"]
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v3

docker/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ ADD https://github.com/RustPython/RustPython/commit/9cac89347e2276fcb309f108561e
2121
RUN mkdir /workdir/rp__doc__/ && tar --strip-components=1 -C /workdir/rp__doc__/ -xzf /tmp/rp__doc__.tar.gz
2222

2323
RUN tar --strip-components=1 -C /workdir -xzf /tmp/v$RUST_PYTHON_VERSION.tar.gz
24-
RUN git apply /tmp/9cac89347e2276fcb309f108561e99f4be5baff2.patch
24+
RUN git apply /tmp/9cac89347e2276fcb309f108561e99f4be5baff2.patch
25+
26+
# armv6 and armv7 fix
27+
# See: https://github.com/pyca/cryptography/issues/6673#issuecomment-985943023
28+
# See: https://github.com/rust-lang/cargo/issues/6513
29+ 47DB
RUN mkdir -p ~/.cargo/registry/index && cd ~/.cargo/registry/index && git clone --bare https://github.com/rust-lang/crates.io-index.git github.com-1ecc6299db9ec823
2530

2631
# Remove the git mode that triggers an error on armv6 and armv7
2732
# Ref: https://github.com/rust-lang/cargo/issues/2808 (failed to mmap. Could not write data: Out of memory; class=Os (2))

0 commit comments

Comments
 (0)
0