From d6e849c67efa0630323c01484d768c5a44edf15f Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Tue, 6 Dec 2022 16:39:20 -0600 Subject: [PATCH] Add arm64 support Signed-off-by: Ed Warnicke --- .github/workflows/ci.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d265c9a5..f95b824b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -121,13 +121,18 @@ jobs: df -h - name: Docker Build run: | - docker build . + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker buildx create --use --bootstrap + echo "docker buildx inspect --bootstrap" + docker buildx inspect --bootstrap + echo "docker buildx build --platform linux/amd64,linux/arm64 ." + docker buildx build --platform linux/amd64,linux/arm64 . VPP_VERSION=$(docker run $(docker build -q . --target version)) echo "VPP_VERSION=${VPP_VERSION}" >> $GITHUB_ENV TAG=v${VPP_VERSION/\~/-} echo "TAG=${TAG}" >> $GITHUB_ENV - docker build -t ghcr.io/${{github.repository}}/vpp:${TAG} . --target vpp - docker build -t ghcr.io/${{github.repository}}/vpp-dbg:${TAG} . --target vpp-dbg + docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${{github.repository}}/vpp:${TAG} . --target vpp + docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/${{github.repository}}/vpp-dbg:${TAG} . --target vpp-dbg - name: Generate files run: go generate ./... - name: Check for changes in generated code