duckdb 0.10.1-dev0.0 → 0.10.1-dev4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/NodeJS.yml +19 -1
- package/package.json +2 -2
- package/scripts/node_build.sh +14 -2
- package/scripts/node_build_win.sh +14 -3
@@ -73,6 +73,11 @@ jobs:
|
|
73
73
|
with:
|
74
74
|
fetch-depth: 0
|
75
75
|
|
76
|
+
# Default Python (3.12) doesn't have support for distutils
|
77
|
+
- uses: actions/setup-python@v4
|
78
|
+
with:
|
79
|
+
python-version: '3.11'
|
80
|
+
|
76
81
|
- name: Update apt
|
77
82
|
shell: bash
|
78
83
|
run: |
|
@@ -102,6 +107,10 @@ jobs:
|
|
102
107
|
npm_config_yes: true
|
103
108
|
|
104
109
|
- name: Node ${{ matrix.node }}
|
110
|
+
env:
|
111
|
+
AWS_ACCESS_KEY_ID: ${{secrets.S3_ID}}
|
112
|
+
AWS_SECRET_ACCESS_KEY: ${{secrets.S3_KEY}}
|
113
|
+
AWS_DEFAULT_REGION: us-east-1
|
105
114
|
shell: bash
|
106
115
|
run: ./scripts/node_build.sh ${{ matrix.node }}
|
107
116
|
|
@@ -166,6 +175,10 @@ jobs:
|
|
166
175
|
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
167
176
|
|
168
177
|
- name: Node ${{ matrix.node }}
|
178
|
+
env:
|
179
|
+
AWS_ACCESS_KEY_ID: ${{secrets.S3_ID}}
|
180
|
+
AWS_SECRET_ACCESS_KEY: ${{secrets.S3_KEY}}
|
181
|
+
AWS_DEFAULT_REGION: us-east-1
|
169
182
|
shell: bash
|
170
183
|
run: ./scripts/node_build.sh ${{ matrix.node }}
|
171
184
|
|
@@ -199,9 +212,10 @@ jobs:
|
|
199
212
|
node: 20
|
200
213
|
|
201
214
|
steps:
|
215
|
+
# Default Python (3.12) doesn't have support for distutils
|
202
216
|
- uses: actions/setup-python@v4
|
203
217
|
with:
|
204
|
-
python-version: '3.
|
218
|
+
python-version: '3.11'
|
205
219
|
|
206
220
|
- uses: actions/checkout@v3
|
207
221
|
with:
|
@@ -238,5 +252,9 @@ jobs:
|
|
238
252
|
variant: sccache
|
239
253
|
|
240
254
|
- name: Node
|
255
|
+
env:
|
256
|
+
AWS_ACCESS_KEY_ID: ${{secrets.S3_ID}}
|
257
|
+
AWS_SECRET_ACCESS_KEY: ${{secrets.S3_KEY}}
|
258
|
+
AWS_DEFAULT_REGION: us-east-1
|
241
259
|
shell: bash
|
242
260
|
run: ./scripts/node_build_win.sh
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "duckdb",
|
3
3
|
"main": "./lib/duckdb.js",
|
4
4
|
"types": "./lib/duckdb.d.ts",
|
5
|
-
"version": "0.10.1-
|
5
|
+
"version": "0.10.1-dev4.0",
|
6
6
|
"description": "DuckDB node.js API",
|
7
7
|
"gypfile": true,
|
8
8
|
"dependencies": {
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"binary": {
|
14
14
|
"module_name": "duckdb",
|
15
15
|
"module_path": "./lib/binding/",
|
16
|
-
"host": "https://duckdb
|
16
|
+
"host": "https://npm.duckdb.org/duckdb"
|
17
17
|
},
|
18
18
|
"scripts": {
|
19
19
|
"install": "node-pre-gyp install --fallback-to-build",
|
package/scripts/node_build.sh
CHANGED
@@ -34,7 +34,19 @@ fi
|
|
34
34
|
|
35
35
|
export PATH=$(npm bin):$PATH
|
36
36
|
./node_modules/.bin/node-pre-gyp package testpackage testbinary --target_arch="$TARGET_ARCH"
|
37
|
+
|
38
|
+
LOCAL_BINARY=$(./node_modules/.bin/node-pre-gyp reveal staged_tarball --silent)
|
39
|
+
REMOTE_BINARY=$(./node_modules/.bin/node-pre-gyp reveal hosted_tarball --silent)
|
40
|
+
S3_ENDPOINT_BINARY="s3://duckdb-npm/"${REMOTE_BINARY:23}
|
41
|
+
|
42
|
+
pip install awscli
|
43
|
+
|
44
|
+
echo "local binary at $LOCAL_BINARY"
|
45
|
+
echo "remote binary at $REMOTE_BINARY"
|
46
|
+
echo "served from $S3_ENDPOINT_BINARY"
|
47
|
+
|
37
48
|
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then
|
38
|
-
|
39
|
-
|
49
|
+
aws s3 cp $LOCAL_BINARY $S3_ENDPOINT_BINARY --acl public-read
|
50
|
+
else
|
51
|
+
aws s3 cp $LOCAL_BINARY $S3_ENDPOINT_BINARY --acl public-read --dryrun
|
40
52
|
fi
|
@@ -15,7 +15,18 @@ if [[ ! "$GITHUB_REF" =~ ^(refs/tags/v.+)$ ]] ; then
|
|
15
15
|
fi
|
16
16
|
npx node-pre-gyp package testpackage testbinary
|
17
17
|
|
18
|
+
LOCAL_BINARY=$(./node_modules/.bin/node-pre-gyp reveal staged_tarball --silent)
|
19
|
+
REMOTE_BINARY=$(./node_modules/.bin/node-pre-gyp reveal hosted_tarball --silent)
|
20
|
+
S3_ENDPOINT_BINARY="s3://duckdb-npm/"${REMOTE_BINARY:23}
|
21
|
+
|
22
|
+
pip install awscli
|
23
|
+
|
24
|
+
echo "local binary at $LOCAL_BINARY"
|
25
|
+
echo "remote binary at $REMOTE_BINARY"
|
26
|
+
echo "served from $S3_ENDPOINT_BINARY"
|
27
|
+
|
18
28
|
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then
|
19
|
-
|
20
|
-
|
21
|
-
|
29
|
+
aws s3 cp $LOCAL_BINARY $S3_ENDPOINT_BINARY --acl public-read
|
30
|
+
else
|
31
|
+
aws s3 cp $LOCAL_BINARY $S3_ENDPOINT_BINARY --acl public-read --dryrun
|
32
|
+
fi
|