diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7401daf..5c38de1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,12 +31,22 @@ jobs: - arm64v8 - ppc64le - s390x - runs-on: ubuntu-latest + runs-on: ${{ (matrix.arch == 's390x' && 'macos') + || 'ubuntu' }}-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # for correct image labeling via `git describe --tags` + - name: Setup Docker and Docker Compose + run: | + brew install colima docker docker-buildx + mkdir -p ~/.docker/cli-plugins + ln -sfn $HOMEBREW_PREFIX/opt/docker-buildx/bin/docker-buildx \ + ~/.docker/cli-plugins/docker-buildx + colima start + if: ${{ matrix.arch == 's390x' }} - uses: docker/setup-buildx-action@v3 + if: ${{ matrix.arch != 's390x' }} - run: make docker.image no-cache=yes platform=${{ matrix.os }}/${{ matrix.arch }}