forked from rclnodejs/ref-napi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
73 lines (61 loc) · 1.58 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
sudo: false
dist: focal
env:
- CXX=g++
- CXX=clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++
language: node_js
os:
- linux
- osx
osx_image: xcode13.2
node_js:
- "10"
- "12"
- "14"
- "16"
jobs:
include:
- os: linux
arch: arm64
node_js: 16
env: CXX=g++
exclude:
- os: osx
env: CXX=g++
- os: linux
env: CXX=clang++
install:
- npm install --build-from-source --no-package-lock
after_success:
- npm install coveralls
- nyc report --reporter=text-lcov | ./node_modules/.bin/coveralls
before_deploy: |-
ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
npm run prebuild --v8_enable_pointer_compression=false --v8_enable_31bit_smis_on_64bit_arch=false
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
ARCH=ia32 npm run prebuild --v8_enable_pointer_compression=false --v8_enable_31bit_smis_on_64bit_arch=false
fi
tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
rm -fr "$TRAVIS_BUILD_DIR/prebuilds"
ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-arm64.tar"
PREBUILD_ARCH=arm64 npm run prebuild --v8_enable_pointer_compression=false --v8_enable_31bit_smis_on_64bit_arch=false
tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds" .
fi
deploy:
provider: releases
draft: false
prerelease: true
file_glob: true
file: "*.tar"
skip_cleanup: true
on:
tags: true
node: 16
api_key: $PREBUILD_GITHUB_TOKEN