Skip to content

Commit

Permalink
Try build linux/s390x platform in MacOS on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Oct 5, 2023
1 parent c10d0e3 commit f6113b8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,24 @@ 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: |
set -ex
brew install colima docker docker-buildx
mkdir -p /Users/runner/.docker/cli-plugins/
ls -l $HOMEBREW_PREFIX/opt/docker-buildx/bin/docker-buildx
ln -sfn $HOMEBREW_PREFIX/opt/docker-buildx/bin/docker-buildx \
/Users/runner/.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 }}
Expand Down

0 comments on commit f6113b8

Please sign in to comment.