Skip to content

Commit

Permalink
Try to build macos arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Sep 18, 2021
1 parent 383eeb4 commit 4c1a767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
arch:
- amd64
- arm64
os:
- osx
- linux
osx_image: xcode12.5
before_deploy:
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
- npm run prebuild
Expand All @@ -28,4 +27,4 @@ deploy:
on:
tags: true
node: node
api_key: '$GITHUB_API_KEY'
api_key: '$GITHUB_API_KEY'
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
},
"scripts": {
"install": "node-gyp-build",
"prebuild": "prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"prebuild": "run-script-os",
"prebuild:darwin": "prebuildify --arch=arm64 --target 16.9.0 && prebuildify --arch=arm64 --target 14.17.6 && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"prebuild:default": "prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0",
"prepare": "prebuildify-ci download && prebuildify --target 16.9.0 && prebuildify --target 14.17.6 && prebuildify --target 12.18.0 && prebuildify --target [email protected]",
"recompile": "node-gyp clean && node-gyp configure && node-gyp build -d",
"test": "mocha test/**.test.js --recursive && npm run test:types",
Expand Down Expand Up @@ -56,6 +58,7 @@
"prebuildify": "^4.2.0",
"prebuildify-ci": "^1.0.5",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"tsd": "^0.14.0"
}
}

0 comments on commit 4c1a767

Please sign in to comment.