Skip to content

Commit

Permalink
Merge pull request #16 from h5py/aarch64-native
Browse files Browse the repository at this point in the history
Build aarch64 Docker images on native aarch64 runner
  • Loading branch information
takluyver authored Feb 8, 2025
2 parents 2b39c2a + 7f49255 commit dbf3b51
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build Image from Dockerfile
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -24,12 +25,12 @@ jobs:
with:
file: ./Dockerfile_x86_64
platforms: linux/amd64
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository_owner }}/manylinux2014_x86_64-hdf5

build_aarch64_wheels:
name: Build image for aarch64
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm

steps:
- uses: actions/checkout@v4
Expand All @@ -41,15 +42,10 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Build and push
uses: docker/build-push-action@v6
with:
file: ./Dockerfile_aarch64
platforms: linux/arm64
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository_owner }}/manylinux2014_aarch64-hdf5

0 comments on commit dbf3b51

Please sign in to comment.