-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Deploy binaries for Linux ARMv6, ARMv7, and ARM64
- Loading branch information
Showing
2 changed files
with
53 additions
and
15 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,56 @@ | ||
language: node_js | ||
node_js: | ||
- "12" | ||
- "10" | ||
- "14" | ||
os: | ||
- linux | ||
- osx | ||
jobs: | ||
include: | ||
- os: linux | ||
node_js: 10 | ||
env: | ||
- TEST=1 | ||
- os: linux | ||
node_js: 12 | ||
env: | ||
- TEST=1 | ||
- os: linux | ||
node_js: 14 | ||
env: | ||
- TEST=1 | ||
- BUILD_NAME=linux-x64 | ||
- os: osx | ||
node_js: 10 | ||
env: | ||
- TEST=1 | ||
- os: osx | ||
node_js: 12 | ||
env: | ||
- TEST=1 | ||
- os: osx | ||
node_js: 14 | ||
env: | ||
- TEST=1 | ||
- BUILD_NAME=darwin-x64 | ||
- os: linux | ||
node_js: 14 | ||
env: | ||
- BUILD_NAME=linux-arm | ||
- BUILD_SCRIPT=prebuild-linux-arm | ||
if: tag is present | ||
- os: linux | ||
node_js: 14 | ||
arch: arm64 | ||
env: | ||
- BUILD_NAME=linux-arm64 | ||
if: tag is present | ||
script: | ||
- if [ -n "$TEST" ]; then npm run test; fi | ||
before_deploy: | ||
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-$(uname -m).tar" | ||
- npm run prebuild | ||
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" . | ||
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$BUILD_NAME.tar" | ||
- if [ -n "$BUILD_SCRIPT" ]; then npm run $BUILD_SCRIPT; else npm run prebuild; fi | ||
- tar -cvf "$ARCHIVE_NAME" -C prebuilds . | ||
deploy: | ||
provider: releases | ||
api_key: | ||
token: | ||
secure: FzxCOALZjPUUCE0pdV6xoeUwcpUG92A6cgeZjUrU8iSsneCLSBfj3i1Zpsz+1A8pPCy4FmWRSqCxkEwMVluYXsUpqT54nvX0yQZHeXTDnVYg1EIvEuKgkysEVUQJ6VplTilE6lrRWYEkOOoQPeIEe4kW8EyGzpV9zeHrpdYsdc0= | ||
file: "$ARCHIVE_NAME" | ||
file: $ARCHIVE_NAME | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
node: "14" | ||
condition: -n "$BUILD_NAME" |
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