Skip to content

Commit 7d49ffd

Browse files
authored
ci: Use docker instead of qemu in release_aarch64 (#13)
1 parent 6e84ce1 commit 7d49ffd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/release_aarch64.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@ jobs:
1111
target: ["aarch64"]
1212
os: ["ubuntu18.04", "ubuntu20.04", "ubuntu22.04", "alpine"]
1313
steps:
14-
- name: Set up QEMU
15-
uses: docker/setup-qemu-action@v2
16-
with:
17-
platforms: arm64
18-
1914
- uses: actions/checkout@v4
2015

16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
19+
- name: Build Docker image
20+
uses: docker/build-push-action@v4
21+
with:
22+
context: .
23+
load: true
24+
platforms: linux/arm64
25+
tags: lablup/backend.ai-hook:latest
26+
2127
- name: Build libbaihook
2228
run: |
23-
sudo apt-get update
24-
sudo apt-get install -y qemu-user-static
25-
sudo update-binfmts --enable qemu-arm
26-
sudo update-binfmts --enable qemu-aarch64
27-
./build.sh ${{ matrix.os }}
28-
rm -rf Makefile
29+
docker run --rm -v "$(pwd)" lablup/backend.ai-hook:latest /bin/bash -c "./build.sh ${{ matrix.os }}"
2930
3031
- name: Release to GitHub
3132
uses: softprops/action-gh-release@v2

.github/workflows/release_x86_64.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
- name: Build libbaihook
1717
run: |
1818
./build.sh ${{ matrix.os }}
19-
rm -rf Makefile
2019
2120
- name: Release to GitHub
2221
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)