File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ jobs:
140
140
env :
141
141
CC : gcc-12
142
142
CXX : g++-12
143
+ # `node-gyp-build` will look at this first; setting it prevents an
144
+ # unintended rebuild and lets Deno just `dlopen` the prebuilt `.node`.
145
+ PREBUILDS_ONLY : " 1"
143
146
144
147
steps :
145
148
- name : Checkout
@@ -167,8 +170,16 @@ jobs:
167
170
with :
168
171
deno-version : vx.x.x
169
172
173
+ # --allow-env : `node-gyp-build` pokes at `process.env`
174
+ # --allow-ffi : Deno needs this to `dlopen` the `.node` addon
175
+ # --unstable : Node-API/FFI loader still gated under this flag
170
176
- name : Test with Deno
171
- run : deno test --allow-read
177
+ run : >
178
+ deno test
179
+ --allow-read
180
+ --allow-env=PREBUILDS_ONLY,npm_config_runtime,npm_config_target
181
+ --allow-ffi
182
+ --unstable
172
183
173
184
test_rust :
174
185
name : Test Rust
You can’t perform that action at this time.
0 commit comments