-
-
Notifications
You must be signed in to change notification settings - Fork 817
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added prebuilt Linux ARM64 binaries to CI
refs #1362 - the referenced PR added Linux ARM64 and ARMv7 prebuilds to CI so we can get prebuilt binaries upon releasing - CI has recently been reworked so I've rebased the PR and fixed it up - unfortunately, `node-pre-gyp` seems to ignore the difference between armv6 and armv7, and treats them both as `arm` so I've had to disable prebuilds for them for now - building via QEMU is INCREDIBLY slow so I've configured it to only run during a release or upon manual execution - full credit to @n1ru4l for the original PR
- Loading branch information
1 parent
290d34f
commit 122d2b8
Showing
3 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG NODE_VERSION=16 | ||
ARG VARIANT=bullseye | ||
|
||
FROM node:$NODE_VERSION-$VARIANT | ||
|
||
ARG VARIANT | ||
|
||
RUN if [ "$VARIANT" = "alpine" ] ; then apk add build-base python3 --update-cache ; fi | ||
|
||
WORKDIR /usr/src/build | ||
|
||
COPY . . | ||
RUN npm install --ignore-scripts | ||
|
||
# Workaround for https://github.com/mapbox/node-pre-gyp/issues/644 | ||
RUN cd node_modules/\@mapbox/node-pre-gyp \ | ||
&& npm install [email protected] \ | ||
&& sed -i -e s/\'fs/\'fs-extra/ -e s/fs\.renameSync/fs.moveSync/ ./lib/util/napi.js | ||
|
||
RUN npx node-pre-gyp configure | ||
RUN npx node-pre-gyp build | ||
RUN npm run test | ||
RUN npx node-pre-gyp package | ||
|
||
CMD ["sh"] |