Skip to content

Commit

Permalink
feat: add linux-arm-gnueabihf
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuang committed Sep 13, 2024
1 parent a142731 commit 07e38d2
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 07e38d2

Please sign in to comment.