Skip to content

Commit

Permalink
[aarch64 support] build for amd64 and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
ktatarnikov committed Jan 2, 2025
1 parent ec05c6d commit 89673de
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,17 @@ jobs:
run: cargo test --all-features

build:
needs: [test]
name: Build
runs-on: ubuntu-latest
needs: [test]

defaults:
run:
working-directory: ./
permissions:
contents: write
packages: write

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -64,8 +67,8 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# @TODO: don't build form arm during development cos it's super slow
# with:
# platforms: linux/amd64, linux/arm64
with:
platforms: linux/amd64, linux/arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -98,7 +101,7 @@ jobs:
with:
push: true
# @TODO: don't build form arm during development cos it's super slow
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64
tags: ${{ env.DOCKER_IMAGES }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down

0 comments on commit 89673de

Please sign in to comment.