This is an automated email from the ASF dual-hosted git repository. zrhoffman pushed a commit to branch asf-arm-runner in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit f7629385e2910b71acce07bbb1f84a708906047a Author: Zach Hoffman <[email protected]> AuthorDate: Thu Apr 4 19:31:00 2024 -0600 Use arm64 runner for arm64 build --- .github/workflows/container-trafficserver-alpine.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/container-trafficserver-alpine.yml b/.github/workflows/container-trafficserver-alpine.yml index 059113433e..9e88109186 100644 --- a/.github/workflows/container-trafficserver-alpine.yml +++ b/.github/workflows/container-trafficserver-alpine.yml @@ -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 @@ -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
