From 9b8ae51481213c501af69a2ceb2171beacad1382 Mon Sep 17 00:00:00 2001 From: Dave Tucker Date: Fri, 30 Apr 2021 12:03:38 +0100 Subject: [PATCH] ci: Ensure binfmt is set up for arm64. Skip s390x s390x emulation is broken. All emulated builds fail with. Illegal Instruction and/or Segfaults. Signed-off-by: Dave Tucker --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6733be30..9a4583079 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,10 @@ jobs: with: path: ./src/github.com/linuxkit/linuxkit + - name: Set up binfmt + # Only register arm64 as we are on amd64 already. s390x is not reliable + run: docker run --privileged --rm tonistiigi/binfmt --install arm64 + - name: Download linuxkit uses: actions/download-artifact@v2 with: @@ -112,8 +116,9 @@ jobs: ${{ runner.os }}-linuxkit- - name: Build Packages + # Skip s390x as emulation is unreliable run: | - make -C pkg build + make OPTIONS="--skip-platforms linux/s390x" -C pkg build test_packages: name: Packages Tests