Skip to content

Commit

Permalink
Use arm64 runner for arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
zrhoffman committed Apr 5, 2024
1 parent 8676f7b commit f762938
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/container-trafficserver-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
matrix:
platform: [ 'amd64', 'arm64' ]
if: ${{ github.repository_owner == 'apache' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.toolchain == 'nightly' && ["self-hosted", "asf-arm"] || 'ubuntu-latest' }}
steps:
- name: Checkout repo
uses: actions/checkout@master
Expand All @@ -66,14 +66,6 @@ jobs:
run: cp .env '${{ github.env }}'
- name: Set image name
run: echo 'IMAGE_NAME=${{ env.CONTAINER }}:${{ env.ATS_VERSION }}-${{ matrix.platform }}' >> '${{ github.env }}'
- name: Install aarch64 emulator
if: ${{ env.SHOULD_RUN == '1' && matrix.platform == 'arm64' }}
run: docker run --rm --privileged tonistiigi/binfmt:qemu-v6.2.0 --install arm64
- name: Make a Docker Buildx builder
if: ${{ env.SHOULD_RUN == '1' && matrix.platform == 'arm64' }}
run: docker buildx create --name arm64-builder --use
# The push can be split into a separate command once docker can store
# multi-architecture images (docker/roadmap#371).
- name: Build ${{ env.IMAGE_NAME }}
if: ${{ env.SHOULD_RUN == '1' }}
working-directory: .github/containers/trafficserver-alpine
Expand Down

0 comments on commit f762938

Please sign in to comment.