22
22
- macos-latest
23
23
- ubuntu-latest
24
24
- windows-latest
25
- architecture :
25
+ target :
26
26
- x64
27
27
node :
28
28
- 10
@@ -37,43 +37,48 @@ jobs:
37
37
include :
38
38
- os : windows-latest
39
39
node : 16
40
- architecture : x86
41
- name : ${{ matrix.os }} ${{ matrix.architecture }} - Node ${{ matrix.node }}
40
+ target : x86
41
+ name : ${{ matrix.os }} (node= ${{ matrix.node }}, target= ${{ matrix.target }})
42
42
steps :
43
43
- uses : actions/checkout@v3
44
44
- uses : actions/setup-node@v3
45
45
with :
46
46
node-version : ${{ matrix.node }}
47
- architecture : ${{ matrix.architecture }}
47
+ architecture : ${{ matrix.target }}
48
48
49
49
- name : Add msbuild to PATH
50
50
51
51
if : contains(matrix.os, 'windows')
52
52
with :
53
- msbuild-architecture : ${{ matrix.architecture }}
53
+ msbuild-architecture : ${{ matrix.target }}
54
54
55
55
- name : Install dependencies
56
56
run : yarn install --ignore-scripts
57
57
58
+ - name : Add env vars
59
+ run : |
60
+ echo "V=1" >> $GITHUB_ENV
61
+
58
62
- name : Add Linux env vars
59
63
if : contains(matrix.os, 'ubuntu')
60
64
run : |
61
65
echo "CFLAGS=${CFLAGS:-} -include ../src/gcc-preinclude.h" >> $GITHUB_ENV
62
66
echo "CXXFLAGS=${CXXFLAGS:-} -include ../src/gcc-preinclude.h" >> $GITHUB_ENV
63
- echo "V=1" >> $GITHUB_ENV
64
67
65
68
- name : Configure build
66
69
run : yarn node-pre-gyp configure
67
70
68
71
- name : Build binaries
69
72
run : yarn node-pre-gyp build
70
73
71
- - name : Print glibc linking
74
+ - name : Print binary info
72
75
if : contains(matrix.os, 'ubuntu')
73
76
run : |
74
77
ldd lib/binding/*/node_sqlite3.node
75
78
echo "---"
76
79
nm lib/binding/*/node_sqlite3.node | grep "GLIBC_" | c++filt || true
80
+ echo "---"
81
+ file lib/binding/napi-v*/*
77
82
78
83
- name : Run tests
79
84
run : yarn test
@@ -102,17 +107,17 @@ jobs:
102
107
matrix :
103
108
node :
104
109
- 16
105
- architecture :
110
+ target :
106
111
- linux/arm64
107
112
variant :
108
113
- bullseye
109
114
- alpine
110
115
include :
111
116
# musl x64 builds
112
- - architecture : linux/amd64
117
+ - target : linux/amd64
113
118
variant : alpine
114
119
node : 16
115
- name : ${{ matrix.variant }} ${{ matrix.architecture }} - Node ${{ matrix.node }}
120
+ name : ${{ matrix.variant }} (node= ${{ matrix.node }}, target= ${{ matrix.target }})
116
121
steps :
117
122
- uses : actions/checkout@v3
118
123
@@ -128,7 +133,7 @@ jobs:
128
133
--file ./tools/BinaryBuilder.Dockerfile \
129
134
--load \
130
135
--tag sqlite-builder \
131
- --platform ${{ matrix.architecture }} \
136
+ --platform ${{ matrix.target }} \
132
137
--no-cache \
133
138
--build-arg VARIANT=${{ matrix.variant }} \
134
139
--build-arg NODE_VERSION=${{ matrix.node }} \
0 commit comments