Skip to content

Commit 4b9f2e2

Browse files
authored
Make the Docker image cross-compile without QEMU emulation (#129)
* Bump all dependencies & disable the pyo3 feature by default. * Make the Docker image cross-compile without QEMU emulation * Add a build cache on the Docker image
1 parent 71f24cf commit 4b9f2e2

File tree

8 files changed

+455
-271
lines changed

8 files changed

+455
-271
lines changed

.github/workflows/docker.yaml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,9 @@ jobs:
1616
build:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Set up QEMU
20-
id: qemu
21-
uses: docker/setup-qemu-action@v2
22-
with:
23-
platforms: arm64
24-
2519
- name: Set up Docker Buildx
26-
id: buildx
2720
uses: docker/setup-buildx-action@v2
2821

29-
- name: Inspect builder
30-
run: docker buildx inspect
31-
3222
- name: Log in to DockerHub
3323
uses: docker/login-action@v2
3424
with:
@@ -64,9 +54,5 @@ jobs:
6454
labels: "gitsha1=${{ github.sha }}"
6555
tags: "${{ steps.set-tag.outputs.tags }}"
6656
platforms: linux/amd64,linux/arm64
67-
68-
# arm64 builds OOM without the git fetch setting. c.f.
69-
# https://github.com/rust-lang/cargo/issues/10583
70-
build-args: |
71-
CARGO_NET_GIT_FETCH_WITH_CLI=true
72-
BUILD_PROFILE=release
57+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache
58+
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max

0 commit comments

Comments
 (0)