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

Commit 90b3c54

Browse files
author
Lars-Magnus Skog
authored
Cross compile armv7 (for RPI) (#584)
* Temporarily move to master branch of ahdinosaur/prebuildify * Temporarily move to vweevers/node-gyp-build#libc-and-arm-flavors * Print out environment on AppVeyor * Temporarily switch to ralphtheninja/prebuildify#PREBUILD_PLATFORM * Upgrade node-gyp-build (should be complete now) * Use prebuildify#override-platform * Try cross compiling for armv7 * Pass all arguments to prebuildify after -- * More explicit script name for cross compiling armv7 * Move out prebuild logic into script * 5.0.0-1-armv7 * Move back into .travis.yml * 5.0.0-1-armv7-2 * Revert temporary version * Remove temporary SET command from appveyor
1 parent 1c90e8f commit 90b3c54

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ after_success:
1515
- npm run coverage
1616

1717
before_deploy:
18-
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
18+
- export ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME.tar"
1919
- npm run prebuild
20+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run prebuildify-cross-armv7; fi
2021
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
2122

2223
deploy:

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ platform:
1414
install:
1515
- SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;%PATH%
1616
- ps: Install-Product node $env:nodejs_version $env:platform
17-
- set PATH=%APPDATA%\npm;%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%PATH%
17+
- SET PATH=%APPDATA%\npm;%APPVEYOR_BUILD_FOLDER%\node_modules\.bin;%PATH%
1818
- git submodule update --init --recursive
1919
- npm i
2020

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
"download-prebuilds": "prebuildify-ci download",
1414
"hallmark": "hallmark --fix",
1515
"dependency-check": "dependency-check . test/*.js bench/*.js",
16-
"prepublishOnly": "npm run dependency-check"
16+
"prepublishOnly": "npm run dependency-check",
17+
"prebuildify-cross-armv7": "prebuildify-cross --platform=linux --arch=arm --arm-version=7 -- -t 8.14.0 --napi --strip"
1718
},
1819
"dependencies": {
1920
"abstract-leveldown": "~6.0.0",
2021
"fast-future": "~1.0.2",
2122
"napi-macros": "~1.8.1",
22-
"node-gyp-build": "~3.7.0"
23+
"node-gyp-build": "~3.8.0"
2324
},
2425
"devDependencies": {
2526
"async": "^2.0.1",
@@ -35,8 +36,9 @@
3536
"node-gyp": "^3.8.0",
3637
"nyc": "^12.0.2",
3738
"optimist": "~0.6.1",
38-
"prebuildify": "^2.10.0",
39+
"prebuildify": "prebuild/prebuildify#override-platform",
3940
"prebuildify-ci": "^1.0.4",
41+
"prebuildify-cross": "ralphtheninja/prebuildify-cross#TARGET_PLATFORM",
4042
"readfiletree": "~0.0.1",
4143
"rimraf": "^2.6.1",
4244
"slump": "^3.0.0",

0 commit comments

Comments
 (0)