From 07e38d2fc6e6126fce26ed9002be7c7743bf489b Mon Sep 17 00:00:00 2001 From: zhangyuang Date: Fri, 13 Sep 2024 22:44:26 +0800 Subject: [PATCH] feat: add linux-arm-gnueabihf --- .github/workflows/CI.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d110a7e..4911e62 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -72,7 +72,14 @@ jobs: ls - host: ubuntu-latest target: arm-unknown-linux-gnueabihf - + build: | + set -e && uname -a && + apt-get update && + apt-get install gcc-arm-linux-gnueabihf -y && + rustup target add arm-unknown-linux-gnueabihf && + target=arm-unknown-linux-gnueabihf yarn build && + strip *.node && + ls - host: ubuntu-latest target: x86_64-unknown-linux-musl docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2023-09-17-alpine @@ -129,16 +136,16 @@ jobs: # if: ${{ matrix.settings.target == 'arm-unknown-linux-gnueabihf' }} # with: # version: 0.13.0 - - name: Setup Cross - if: ${{ matrix.settings.target == 'arm-unknown-linux-gnueabihf' }} - uses: houseabsolute/actions-rust-cross@v0 - with: - target: arm-unknown-linux-gnueabihf - args: "--locked --release" - strip: true - - name: Move gnuabihf - if: ${{ matrix.settings.target == 'arm-unknown-linux-gnueabihf' }} - run: mv target/arm-unknown-linux-gnueabihf/release/libffi_rs.so ./ffi-rs.arm-unknown-linux-gnueabihf.node + # - name: Setup Cross + # if: ${{ matrix.settings.target == 'arm-unknown-linux-gnueabihf' }} + # uses: houseabsolute/actions-rust-cross@v0 + # with: + # target: arm-unknown-linux-gnueabihf + # args: "--locked --release" + # strip: true + # - name: Move gnuabihf + # if: ${{ matrix.settings.target == 'arm-unknown-linux-gnueabihf' }} + # run: mv target/arm-unknown-linux-gnueabihf/release/libffi_rs.so ./ffi-rs.arm-unknown-linux-gnueabihf.node - name: Setup toolchain run: ${{ matrix.settings.setup }} if: ${{ matrix.settings.setup }}