Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build aarch64 Docker images on native aarch64 runner #16

Merged
merged 2 commits into from
Feb 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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