Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 6887662

Browse files
authored
Merge pull request #446 from nzapponi/master
Added support for armv7l arch (Raspberry Pi 32bit)
2 parents 78ff999 + c28bf9f commit 6887662

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ jobs:
9292
docker build -t node-keytar/i386 docker/i386
9393
docker run --rm -v ${PWD}:/project node-keytar/i386 /bin/bash -c "cd /project && npm run prebuild-napi-ia32 && rm -rf build"
9494
docker build -t node-keytar/arm64-cross-compile docker/arm64-cross-compile
95-
docker run --rm -v ${PWD}:/project node-keytar/arm64-cross-compile /bin/bash -c "cd /project && npm run prebuild-napi-arm64"
95+
docker run --rm -v ${PWD}:/project node-keytar/arm64-cross-compile /bin/bash -c "cd /project && npm run prebuild-napi-arm64 && rm -rf build"
96+
docker build -t node-keytar/armv7l-cross-compile docker/armv7l-cross-compile
97+
docker run --rm -v ${PWD}:/project node-keytar/armv7l-cross-compile /bin/bash -c "cd /project && npm run prebuild-napi-armv7l"
9698
if: ${{ matrix.os == 'ubuntu-20.04' }}
97-
name: Prebuild (Linux x86 + ARM64)
99+
name: Prebuild (Linux x86 + ARM64 + ARMV7L)
98100
99101
- run: |
100102
ls prebuilds/
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM debian:buster
2+
3+
RUN dpkg --add-architecture armhf
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
crossbuild-essential-armhf \
6+
python \
7+
git \
8+
pkg-config \
9+
fakeroot \
10+
rpm \
11+
ca-certificates \
12+
libx11-dev:armhf \
13+
libx11-xcb-dev:armhf \
14+
libxkbfile-dev:armhf \
15+
libsecret-1-dev:armhf \
16+
curl
17+
18+
ENV AS=/usr/bin/arm-linux-gnueabihf-as \
19+
STRIP=/usr/bin/arm-linux-gnueabihf-strip \
20+
AR=/usr/bin/arm-linux-gnueabihf-ar \
21+
CC=/usr/bin/arm-linux-gnueabihf-gcc \
22+
CPP=/usr/bin/arm-linux-gnueabihf-cpp \
23+
CXX=/usr/bin/arm-linux-gnueabihf-g++ \
24+
LD=/usr/bin/arm-linux-gnueabihf-ld \
25+
FC=/usr/bin/arm-linux-gnueabihf-gfortran \
26+
PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
27+
28+
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
29+
RUN apt-get install -y nodejs

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"prebuild-napi-x64": "prebuild -t 3 -r napi -a x64 --strip",
3939
"prebuild-napi-ia32": "prebuild -t 3 -r napi -a ia32 --strip",
4040
"prebuild-napi-arm64": "prebuild -t 3 -r napi -a arm64 --strip",
41+
"prebuild-napi-armv7l": "prebuild -t 3 -r napi -a armv7l --strip",
4142
"upload": "node ./script/upload.js"
4243
},
4344
"devDependencies": {

0 commit comments

Comments
 (0)