From 2fcfe5f1022214173467c55b09a88b2efc43ae70 Mon Sep 17 00:00:00 2001 From: Maksim Ryndin Date: Thu, 22 Feb 2024 11:36:54 +0000 Subject: [PATCH] update --- .github/workflows/release.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3f00d6..8e608e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -122,6 +122,7 @@ jobs: - build: linux os: ubuntu-latest target: aarch64-unknown-linux-gnu + packages: "libc6-dev-arm64-cross gcc-aarch64-linux-gnu" # - build: macos # os: macos-latest @@ -162,12 +163,9 @@ jobs: if [ "${{ matrix.target }}" = "x86_64-unknown-linux-gnu" ]; then exit 0 fi - if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then - #sudo apt-get install --no-install-recommends -y build-essential gcc-aarch64-linux-gnu libc6-dev-arm64-cross - sudo apt-get install --no-install-recommends -y libc6-dev-arm64-cross gcc-aarch64-linux-gnu - fi + sudo apt-get install --no-install-recommends -y ${{ matrix.packages }} - - name: Install toolchain + - name: Install target shell: bash run: | if [ "${{ matrix.target }}" = "x86_64-unknown-linux-gnu" ]; then @@ -178,9 +176,9 @@ jobs: - name: Build env: RUSTFLAGS: '-C target-feature=+crt-static' - CC_aarch64_unknown_linux_gnu: "aarch64-linux-gnu-gcc" - CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "aarch64-linux-gnu-gcc" - BINDGEN_EXTRA_CLANG_ARGS: -"-sysroot /usr/aarch64-linux-gnu" + #CC_aarch64_unknown_linux_gnu: "aarch64-linux-gnu-gcc" + #CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "aarch64-linux-gnu-gcc" + #BINDGEN_EXTRA_CLANG_ARGS: -"-sysroot /usr/aarch64-linux-gnu" shell: bash run: | cargo build --verbose --release --target ${{ matrix.target }}