26
26
- uses : actions/checkout@v2
27
27
28
28
- name : Setup node
29
- uses : actions/setup-node@v1
29
+ uses : actions/setup-node@v2
30
30
with :
31
31
node-version : 14
32
32
check-latest : true
76
76
name : bindings-${{ matrix.os }}
77
77
path : packages/*/*.node
78
78
79
+ build-windows-i686 :
80
+ if : " !contains(github.event.head_commit.message, 'skip ci')"
81
+ name : stable - windows-i686 - node@14
82
+ runs-on : windows-latest
83
+ env :
84
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS : 32
85
+ CARGO_PROFILE_RELEASE_LTO : ' false'
86
+ steps :
87
+ - uses : actions/checkout@v2
88
+
89
+ - name : Install node x86
90
+ run : |
91
+ choco install nodejs-lts --x86 -y --force
92
+ refreshenv
93
+ - name : Set 32bit NodeJS path
94
+ run : |
95
+ echo "C:\\Program Files (x86)\\nodejs" >> $GITHUB_PATH
96
+ shell : bash
97
+
98
+ - name : NodeJS arch
99
+ run : node -e "console.log(process.arch)"
100
+
101
+ - name : Cache NPM dependencies
102
+ uses : actions/cache@v1
103
+ with :
104
+ path : node_modules
105
+ key : npm-cache-windows-i686-node@lts-${{ hashFiles('yarn.lock') }}
106
+
107
+ - name : Install dependencies
108
+ run : yarn install --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
109
+
110
+ - name : Build TypeScript
111
+ run : yarn build:ts
112
+
113
+ - name : Install
114
+ uses : actions-rs/toolchain@v1
115
+ with :
116
+ toolchain : stable
117
+ profile : minimal
118
+ override : true
119
+
120
+ - name : Install i686 toolchain
121
+ run : rustup target add i686-pc-windows-msvc
122
+
123
+ - name : Generate Cargo.lock
124
+ uses : actions-rs/cargo@v1
125
+ with :
126
+ command : generate-lockfile
127
+
128
+ - name : Cache cargo registry
129
+ uses : actions/cache@v1
130
+ with :
131
+ path : ~/.cargo/registry
132
+ key : stable-windows-i686-node@lts-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
133
+
134
+ - name : Cache cargo index
135
+ uses : actions/cache@v1
136
+ with :
137
+ path : ~/.cargo/git
138
+ key : stable-windows-i686-node@lts-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
139
+
140
+ - name : Cargo test
141
+ uses : actions-rs/cargo@v1
142
+ timeout-minutes : 5
143
+ with :
144
+ command : test
145
+ args : -p node-rs-bcrypt --lib -- --nocapture
146
+
147
+ - name : Run build
148
+ run : npx lerna exec "yarn build --target i686-pc-windows-msvc" --concurrency 1 --stream --no-prefix
149
+
150
+ - name : Test bindings
151
+ run : yarn test
152
+
153
+ - name : Upload artifact
154
+ uses : actions/upload-artifact@v2
155
+ with :
156
+ name : bindings-win32-i686
157
+ path : packages/*/*.node
158
+
79
159
build-musl :
80
160
if : " !contains(github.event.head_commit.message, 'skip ci')"
81
161
name : stable - linux-musl - node@10
@@ -201,7 +281,7 @@ jobs:
201
281
- uses : actions/checkout@v2
202
282
203
283
- name : Setup node
204
- uses : actions/setup-node@v1
284
+ uses : actions/setup-node@v2
205
285
with :
206
286
node-version : 14
207
287
@@ -255,7 +335,7 @@ jobs:
255
335
path : packages/*/*.node
256
336
257
337
build-apple-silicon :
258
- name : nightly - aarch64-apple-darwin - node@14
338
+ name : stable - aarch64-apple-darwin - node@14
259
339
runs-on : macos-latest
260
340
261
341
steps :
@@ -270,7 +350,7 @@ jobs:
270
350
- name : Install
271
351
uses : actions-rs/toolchain@v1
272
352
with :
273
- toolchain : nightly
353
+ toolchain : stable
274
354
profile : minimal
275
355
override : true
276
356
@@ -286,13 +366,13 @@ jobs:
286
366
uses : actions/cache@v1
287
367
with :
288
368
path : ~/.cargo/registry
289
- key : nightly -apple-aarch64-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
369
+ key : stable -apple-aarch64-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
290
370
291
371
- name : Cache cargo index
292
372
uses : actions/cache@v1
293
373
with :
294
374
path : ~/.cargo/git
295
- key : nightly -apple-aarch64-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
375
+ key : stable -apple-aarch64-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
296
376
297
377
- name : Cache NPM dependencies
298
378
uses : actions/cache@v1
@@ -319,7 +399,7 @@ jobs:
319
399
- uses : actions/checkout@v2
320
400
321
401
- name : Setup node
322
- uses : actions/setup-node@v1
402
+ uses : actions/setup-node@v2
323
403
with :
324
404
node-version : 14
325
405
@@ -335,13 +415,13 @@ jobs:
335
415
uses : actions/cache@v1
336
416
with :
337
417
path : ~/.cargo/registry
338
- key : nightly -apple-aarch64-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
418
+ key : stable -apple-aarch64-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
339
419
340
420
- name : Cache cargo index
341
421
uses : actions/cache@v1
342
422
with :
343
423
path : ~/.cargo/git
344
- key : nightly -apple-aarch64-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
424
+ key : stable -apple-aarch64-node@14-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
345
425
346
426
- name : Cache NPM dependencies
347
427
uses : actions/cache@v1
@@ -509,6 +589,7 @@ jobs:
509
589
- build-android-aarch64
510
590
- build-linux-arm7
511
591
- build-apple-silicon
592
+ - build-windows-i686
512
593
runs-on : ubuntu-latest
513
594
steps :
514
595
- name : auto-merge
@@ -526,6 +607,7 @@ jobs:
526
607
- build-android-aarch64
527
608
- build-linux-arm7
528
609
- build-apple-silicon
610
+ - build-windows-i686
529
611
steps :
530
612
- uses : actions/checkout@v2
531
613
0 commit comments