From a719279d35ccfa80760058f12767c561a0ee09d1 Mon Sep 17 00:00:00 2001 From: Gyubong Lee Date: Tue, 4 Jun 2024 06:01:14 +0000 Subject: [PATCH] ci: Use qemu instead of docker --- .github/workflows/release_aarch64.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release_aarch64.yml b/.github/workflows/release_aarch64.yml index 3c2abf7..f3e5f9d 100644 --- a/.github/workflows/release_aarch64.yml +++ b/.github/workflows/release_aarch64.yml @@ -16,22 +16,15 @@ jobs: with: platforms: arm64 - - 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 - - uses: actions/checkout@v4 - name: Build libbaihook run: | - docker run --rm -v "$(pwd)" lablup/backend.ai-hook:latest /bin/bash -c "./build.sh ${{ matrix.os }}" + 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 - name: Release to GitHub