Skip to content

Commit

Permalink
arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Oct 1, 2023
1 parent 62c06cb commit 0b41219
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,13 @@ jobs:
arch: aarch64
- target: aarch64-unknown-linux-musl
arch: aarch64
- target: armv7-unknown-linux-gnueabihf
arch: armv7
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jirutka/setup-alpine@v1
with:
arch: ${{ matrix.settings.arch }}
packages: >
libuuid
xdo
libc-dev
pkgconfig
glib-dev
gtk+3.0-dev
pango-dev
cairo-dev
fontconfig-dev
rustup
nodejs
npm
- name: Cache cargo
uses: actions/cache@v3
with:
Expand All @@ -151,13 +136,13 @@ jobs:
addon/target/
key: ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }}
- uses: goto-bus-stop/setup-zig@v2
- name: Install dependencies
shell: alpine.sh --root {0}
run: npm install
- name: Build
shell: alpine.sh --root {0}
shell: alpine.sh {0}
run: |-
set -e &&
apk update &&
apk add libuuid xdo libc-dev pkgconfig glib-dev gtk+3.0-dev pango-dev cairo-dev fontconfig-dev rustup nodejs npm &&
npm install &&
rustup target add ${{ matrix.settings.target }} &&
PKG_CONFIG_SYSROOT_DIR=/ npm run build --target ${{ matrix.settings.target }} &&
strip *.node
Expand Down
18 changes: 0 additions & 18 deletions addon/npm/linux-arm-gnueabihf/package.json

This file was deleted.

1 change: 0 additions & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"name": "rubick-native-addon",
"triples": {
"additional": [
"armv7-unknown-linux-gnueabihf",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"x86_64-unknown-linux-musl",
Expand Down

0 comments on commit 0b41219

Please sign in to comment.