Skip to content

Commit

Permalink
ci: Use docker instead of qemu in release_aarch64 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine authored Jun 4, 2024
1 parent 6e84ce1 commit 7d49ffd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@ jobs:
target: ["aarch64"]
os: ["ubuntu18.04", "ubuntu20.04", "ubuntu22.04", "alpine"]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- 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 }}
rm -rf Makefile
docker run --rm -v "$(pwd)" lablup/backend.ai-hook:latest /bin/bash -c "./build.sh ${{ matrix.os }}"
- name: Release to GitHub
uses: softprops/action-gh-release@v2
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
- name: Build libbaihook
run: |
./build.sh ${{ matrix.os }}
rm -rf Makefile
- name: Release to GitHub
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 7d49ffd

Please sign in to comment.