From 19054e7ae3d90adb418a20d96d61d689779fef21 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 8 Feb 2025 16:43:20 +0000 Subject: [PATCH 1/2] Build aarch64 Docker images on native aarch64 runner --- .github/workflows/build-image.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 259dd32..ccb7e58 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -29,7 +29,7 @@ jobs: build_aarch64_wheels: name: Build image for aarch64 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04-arm steps: - uses: actions/checkout@v4 @@ -41,11 +41,6 @@ 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: From 7f49255327ed6d2b8e35bf6f17ebea652f1bfbc2 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 8 Feb 2025 16:51:38 +0000 Subject: [PATCH 2/2] Build (but don't push) images on pull requests --- .github/workflows/build-image.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index ccb7e58..9cfd8da 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -2,6 +2,7 @@ name: Build Image from Dockerfile on: push: branches: [ master ] + pull_request: workflow_dispatch: jobs: @@ -24,7 +25,7 @@ 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: @@ -46,5 +47,5 @@ jobs: with: file: ./Dockerfile_aarch64 platforms: linux/arm64 - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ghcr.io/${{ github.repository_owner }}/manylinux2014_aarch64-hdf5