-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.84 KB
/
test.yml
File metadata and controls
60 lines (52 loc) · 1.84 KB
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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
Tests:
strategy:
fail-fast: false
max-parallel: 15
matrix:
node: [14.x, 15.x, 16.x, 17.x, 18.x, 19.x]
os: [macos-latest, ubuntu-latest]
# os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Build Boost
uses: egor-tensin/build-boost@v1
id: boost
with:
version: 1.81.0
libraries: filesystem iostreams
configuration: Release
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Pre-Install Dependencies
if: ${{ matrix.node != '14.x' }}
run: npm explore npm/node_modules/@npmcli/run-script -g -- npm_config_global=false npm install node-gyp@latest
- name: Install Dependencies
run: npm install --no-progress
env:
BOOST_ROOT: ${{ steps.boost.outputs.root }}
BOOST_LIBRARYDIR: ${{ steps.boost.outputs.librarydir }}
DYLD_LIBRARY_PATH: ${{ steps.boost.outputs.librarydir }}
LD_LIBRARY_PATH: ${{ steps.boost.outputs.librarydir }}
- name: Environment Information
run: npx envinfo
- name: Change executable @rpath
if: ${{ matrix.os == 'macos-latest' }}
run: install_name_tool -add_rpath ${{ steps.boost.outputs.librarydir }} lib/shared-file-view.node
- name: Run Node tests
run: npm test
env:
BOOST_ROOT: ${{ steps.boost.outputs.root }}
BOOST_LIBRARYDIR: ${{ steps.boost.outputs.librarydir }}
DYLD_LIBRARY_PATH: ${{ steps.boost.outputs.librarydir }}
LD_LIBRARY_PATH: ${{ steps.boost.outputs.librarydir }}