From c3b9d45774a049820fa28bcf7e53aa6bddc94d4d Mon Sep 17 00:00:00 2001 From: usamoi Date: Fri, 27 Dec 2024 15:34:58 +0800 Subject: [PATCH] build aarch64 binary (#241) Signed-off-by: usamoi --- .github/workflows/release.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e18b4e8..38e7ea5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,9 +49,12 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-20.04 + - os: ubuntu-22.04 rust: stable target: x86_64-unknown-linux-musl + - os: ubuntu-22.04 + rust: stable + target: aarch64-unknown-linux-musl - os: macos-latest rust: stable target: x86_64-apple-darwin @@ -68,10 +71,20 @@ jobs: with: fetch-depth: 1 - name: Install packages (Ubuntu) - if: matrix.os == 'ubuntu-20.04' + if: matrix.os == 'ubuntu-22.04' run: | + sudo dpkg --add-architecture arm64 + cat <> $GITHUB_ENV - name: Install Rust uses: actions-rs/toolchain@v1 with: