Skip to content

Commit

Permalink
refactor(ci): use qemu as macos-14 does not support docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 12, 2024
1 parent d045502 commit 8611ab0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ jobs:
build-container:
strategy:
matrix:
include:
- runner: "macos-14"
arch: "arm64"
- runner: "ubuntu-latest"
arch: "amd64"
arch: ["arm64", "amd64"]

runs-on: ${{ matrix.runner }}
runs-on: ubuntu-latest

steps:
- name: 📥 Checkout
uses: actions/checkout@v4

- name: 🤖 Setup Qemu
uses: docker/setup-qemu-action@v3
with:
platforms: "arm64"

- name: 🐋 Setup Buildx
uses: docker/setup-buildx-action@v3

Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ jobs:
build:
strategy:
matrix:
include:
- runner: "macos-14"
arch: "arm64"
- runner: "ubuntu-latest"
arch: "amd64"
arch: ["arm64", "amd64"]

runs-on: ${{ matrix.runner }}
runs-on: ubuntu-latest

steps:
- name: 📥 Checkout
uses: actions/checkout@v4

- name: 🤖 Setup Qemu
uses: docker/setup-qemu-action@v3
with:
platforms: "arm64"

- name: 🔐 Login
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 8611ab0

Please sign in to comment.