13
13
jobs :
14
14
build :
15
15
strategy :
16
+ fail-fast : false
16
17
matrix :
17
18
os : [ubuntu-latest, macos-latest, windows-latest]
18
19
25
26
uses : actions/setup-node@v2
26
27
with :
27
28
node-version : 14
29
+
30
+ - name : Install Rust
31
+ uses : actions-rs/toolchain@v1
32
+ with :
33
+ profile : minimal
34
+ override : true
28
35
29
36
- name : Install node dependencies
30
37
run : npm i
57
64
run : |
58
65
choco install nodejs-lts --x86 -y --force
59
66
refreshenv
67
+
60
68
- name : Set 32bit NodeJS path
61
69
run : |
62
70
echo "C:\\Program Files (x86)\\nodejs" >> $GITHUB_PATH
@@ -65,15 +73,12 @@ jobs:
65
73
- name : NodeJS arch
66
74
run : node -e "console.log(process.arch)"
67
75
68
- - name : Install
76
+ - name : Install Rust
69
77
uses : actions-rs/toolchain@v1
70
78
with :
71
- toolchain : stable
72
79
profile : minimal
73
80
override : true
74
-
75
- - name : Install i686 toolchain
76
- run : rustup target add i686-pc-windows-msvc
81
+ target : i686-pc-windows-msvc
77
82
78
83
- name : Install node dependencies
79
84
run : npm i
@@ -117,6 +122,7 @@ jobs:
117
122
run : |
118
123
docker pull docker.pkg.github.com/napi-rs/napi-rs/nodejs-rust:10-alpine
119
124
docker tag docker.pkg.github.com/napi-rs/napi-rs/nodejs-rust:10-alpine builder
125
+
120
126
- name : " Install dependencies"
121
127
run : npm i
122
128
@@ -142,15 +148,12 @@ jobs:
142
148
with :
143
149
node-version : 14
144
150
145
- - name : Install
151
+ - name : Install Rust
146
152
uses : actions-rs/toolchain@v1
147
153
with :
148
- toolchain : stable
149
154
profile : minimal
150
155
override : true
151
-
152
- - name : Install aarch64 toolchain
153
- run : rustup target add aarch64-apple-darwin
156
+ target : aarch64-apple-darwin
154
157
155
158
- name : Cache
156
159
uses : actions/cache@v2
@@ -185,15 +188,12 @@ jobs:
185
188
with :
186
189
node-version : 14
187
190
188
- - name : Install
191
+ - name : Install Rust
189
192
uses : actions-rs/toolchain@v1
190
193
with :
191
- toolchain : stable
192
194
profile : minimal
193
195
override : true
194
-
195
- - name : Install aarch64 toolchain
196
- run : rustup target add aarch64-unknown-linux-gnu
196
+ target : aarch64-unknown-linux-gnu
197
197
198
198
- name : Cache
199
199
uses : actions/cache@v2
@@ -202,7 +202,6 @@ jobs:
202
202
target/
203
203
key : aarch64-linux-gnu-publish-integration
204
204
205
-
206
205
- name : Install cross compile toolchain
207
206
run : |
208
207
sudo apt-get update
@@ -234,15 +233,12 @@ jobs:
234
233
with :
235
234
node-version : 14
236
235
237
- - name : Install
236
+ - name : Install Rust
238
237
uses : actions-rs/toolchain@v1
239
238
with :
240
- toolchain : stable
241
239
profile : minimal
242
240
override : true
243
-
244
- - name : Install aarch64 toolchain
245
- run : rustup target add armv7-unknown-linux-gnueabihf
241
+ target : armv7-unknown-linux-gnueabihf
246
242
247
243
- name : Cache
248
244
uses : actions/cache@v2
@@ -279,8 +275,12 @@ jobs:
279
275
with :
280
276
node-version : 14
281
277
282
- - name : Install aarch64 toolchain
283
- run : rustup target add aarch64-linux-android
278
+ - name : Install Rust
279
+ uses : actions-rs/toolchain@v1
280
+ with :
281
+ profile : minimal
282
+ override : true
283
+ target : aarch64-linux-android
284
284
285
285
- name : Install node dependencies
286
286
run : npm i
0 commit comments