Skip to content

Commit

Permalink
Try out ARM runners
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Jan 20, 2025
1 parent c5429d6 commit 7d5e83a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/wheel_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,22 @@ on:

tag:
description: 'The tag for the final Docker image'
default: 'latest'
default: 'latest-'
required: true

jobs:
docker:
name: 'Create Docker image for manylinux wheels'
runs-on: ubuntu-latest
runs-on: ${{ matrix.base_image }}
strategy:
matrix:
include:
- platform: 'linux/amd64'
arch: 'x86_64'
base_image: 'ubuntu-22.04'
- platform: 'linux/arm64'
arch: 'aarch64'
base_image: 'ubuntu-22.04-arm'

steps:
- name: Login to Docker Hub
Expand All @@ -59,18 +61,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:packaging/python"
platforms: ${{ matrix.platform }}
push: ${{ github.event.inputs.upload }}
tags: ${{ github.event.inputs.container_registry }}/neuronsimulator/neuron_wheel:${{ github.event.inputs.tag }}-${{ matrix.arch }}
tags: ${{ github.event.inputs.container_registry }}/neuronsimulator/neuron_wheel:${{ github.event.inputs.tag }}${{ github.event.inputs.base_image }}_${{ matrix.arch }}
build-args: |
MANYLINUX_IMAGE=${{ github.event.inputs.base_image }}_${{ matrix.arch }}

0 comments on commit 7d5e83a

Please sign in to comment.