Skip to content

Commit 05f35b3

Browse files
authored
Add arm64 image
1 parent c186504 commit 05f35b3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ jobs:
3838
permissions:
3939
contents: read
4040
packages: write
41+
strategy:
42+
fail-fast: false # do not cancel even if any platform fails.
43+
matrix:
44+
platform: [linux/amd64,linux/arm64]
4145
steps:
4246
- name: Git checkout
4347
uses: actions/checkout@v3
4448
- name: Enable buildx
45-
uses: docker/setup-buildx-action@v2
49+
uses: docker/setup-buildx-action@v3
50+
- name: Set up QEMU
51+
uses: docker/setup-qemu-action@v3
4652

4753
- name: Log in to the GitHub Container registry
4854
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
@@ -59,6 +65,7 @@ jobs:
5965
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
6066
with:
6167
context: .
68+
platforms: ${{ matrix.platform }}
6269
push: true
6370
tags: ${{ steps.meta_gh.outputs.tags }}
6471
labels: ${{ steps.meta_gh.outputs.labels }}
@@ -78,6 +85,7 @@ jobs:
7885
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
7986
with:
8087
context: .
88+
platforms: ${{ matrix.platform }}
8189
push: true
8290
tags: ${{ steps.meta_dh.outputs.tags }}
8391
labels: ${{ steps.meta_dh.outputs.labels }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get update \
66
&& apt-get install -y \
77
nano python3-pip python3-mock libpython3-dev \
88
libpython3-all-dev python-is-python3 wget curl cmake \
9-
software-properties-common sudo \
9+
software-properties-common sudo pkg-config libhdf5-dev \
1010
&& sed -i 's/# set linenumbers/set linenumbers/g' /etc/nanorc \
1111
&& apt clean \
1212
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)