From e2cf49917fdd19ef3dc2bea0281947b85144ab8e Mon Sep 17 00:00:00 2001 From: Zvicii Date: Fri, 29 Dec 2023 12:43:40 +0800 Subject: [PATCH] ci: use cargo cross for aarch64-unknown-linux-gnu cross build --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5234835..ca1443e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,8 +62,8 @@ jobs: with: toolchain: stable targets: aarch64-unknown-linux-gnu - - run: sudo apt-get install -y gcc-aarch64-linux-gnu - - run: cargo build --release --target aarch64-unknown-linux-gnu + - run: cargo install cross + - run: cross build --release --target aarch64-unknown-linux-gnu - uses: actions/upload-artifact@v4 with: name: aarch64-unknown-linux-gnu