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

Commit

Permalink
Add scripts for linux-arm64 prebuilds
Browse files Browse the repository at this point in the history
ARM is a common platform, especially if you are building Docker images
on Apple Silicon using Docker Desktop.

This requires the `openssl_fips` variable to be set to the empty string
in a few gyp files.
  • Loading branch information
sds committed Feb 3, 2023
1 parent 29c9d9f commit 8bc03a4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-latest
build-group: linux-arm64
- os: ubuntu-latest
build-group: linux-x64
# At the time of writing macos-latest is mac 10; we need 11 to build a universal binary.
Expand Down
5 changes: 4 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@
, "sources": [
"binding.cc"
]
}]
}],
"variables": {
"openssl_fips": ""
}
}
6 changes: 5 additions & 1 deletion deps/rocksdb/rocksdb.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,8 @@

, 'build_version.cc'
]
}]}
}],
'variables': {
'openssl_fips': ''
}
}
6 changes: 5 additions & 1 deletion deps/snappy/snappy.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,8 @@
, 'snappy-1.1.7/snappy.cc'
, 'snappy-1.1.7/snappy.h'
]
}]}
}],
'variables': {
'openssl_fips': ''
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"coverage": "nyc report -r lcovonly",
"rebuild": "npm run install --build-from-source",
"prebuild": "prebuildify -t 8.14.0 --napi --strip",
"prebuild-linux-arm64": "prebuildify-cross -i linux-arm64 -t 8.14.0 --napi --strip",
"prebuild-linux-x64": "prebuildify-cross -i centos7-devtoolset7 -i alpine -t 8.14.0 --napi --strip",
"prebuild-darwin-x64+arm64": "prebuildify -t 8.14.0 --napi --strip --arch x64+arm64",
"prebuild-win32-x64": "prebuildify -t 8.14.0 --napi --strip",
Expand Down

0 comments on commit 8bc03a4

Please sign in to comment.