Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use docker instead of qemu in release_aarch64 #13

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ci: Use docker instead of qemu
jopemachine committed Jun 4, 2024
commit 744de290f810fed951f790ab87ab2a478807dbe1
18 changes: 10 additions & 8 deletions .github/workflows/release_aarch64.yml
Original file line number Diff line number Diff line change
@@ -11,20 +11,22 @@ jobs:
target: ["aarch64"]
os: ["ubuntu18.04", "ubuntu20.04", "ubuntu22.04", "alpine"]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Docker image
uses: docker/build-push-action@v4
with:
platforms: arm64
context: .
load: true
platforms: linux/arm64
tags: lablup/backend.ai-hook:latest

- uses: actions/checkout@v4

- name: Build libbaihook
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
sudo update-binfmts --enable qemu-arm
sudo update-binfmts --enable qemu-aarch64
./build.sh ${{ matrix.os }}
docker run --rm -v "$(pwd)" lablup/backend.ai-hook:latest /bin/bash -c "./build.sh ${{ matrix.os }}"
rm -rf Makefile
- name: Release to GitHub