From 29e42a437840eaf861b1c16b0947368fd73e0cce Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Thu, 25 Aug 2022 22:54:32 +0000 Subject: [PATCH] ci: Set up emulation and build for arm64 Previous commits enable this to work. Emulation is necessary to build arm64 on an amd64 host machine [1]. [1]: https://github.com/docker/build-push-action/blob/965c6a410d446a30e95d35052c67d6eded60dad6/docs/advanced/multi-platform.md --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0802691..98f3c489 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,11 @@ jobs: # and hyphens. run: echo "TAG=branch-${GITHUB_REF_NAME//[^A-Za-z0-9._-]/-}" | tee -a $GITHUB_ENV + - uses: docker/setup-qemu-action@v2 + - run: ./devel/start-localhost-registry $REGISTRY_PORT - - run: ./devel/build-to-localhost -p linux/amd64 -r localhost:$REGISTRY_PORT -t $TAG + - run: ./devel/build-to-localhost -p linux/amd64,linux/arm64 -r localhost:$REGISTRY_PORT -t $TAG - if: github.event_name != 'pull_request' uses: docker/login-action@v1