48
48
with :
49
49
version : ${{ matrix.pnpm }}
50
50
51
- - name : Install and build
51
+ - name : Install
52
52
run : |
53
53
pnpm install
54
+
55
+ - name : Build
56
+ run : |
57
+ pnpm build
54
58
pnpm build.docker_tests
55
59
56
60
- name : Upload Dist
62
66
./dev/docker/__tests__/
63
67
retention-days : 1
64
68
65
- Build_Executable :
66
- name : Build_Executable -${{ matrix.os }}
69
+ BuildExecutable :
70
+ name : Build-Executable -${{ matrix.os }}
67
71
needs : [Build]
68
72
if : ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
69
73
runs-on : ${{ matrix.os }}
85
89
uses : actions/download-artifact@v3
86
90
with :
87
91
name : dist
88
- - name : Place Artifacts
89
- shell : bash
90
- run : |
91
- mv -v artifact/* ./
92
92
93
93
- name : Setup Node
94
94
uses : actions/setup-node@v3
@@ -100,6 +100,21 @@ jobs:
100
100
with :
101
101
version : ${{ matrix.pnpm }}
102
102
103
+ - name : Cache node_modules
104
+ uses : actions/cache@v3
105
+ with :
106
+ path : |
107
+ ~/.pnpm-store
108
+ D:\.pnpm-store
109
+ ./node_modules
110
+ key : " setupcpp-node_modules-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
111
+ restore-keys : |
112
+ "setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
113
+
114
+ - name : Install
115
+ run : |
116
+ pnpm install
117
+
103
118
# Create self-contained executable that bundles Nodejs
104
119
- name : Create Executable
105
120
run : |
@@ -114,7 +129,7 @@ jobs:
114
129
retention-days : 1
115
130
116
131
Test :
117
- name : ${{ matrix.os }}
132
+ name : Test- ${{ matrix.os }}
118
133
if : ${{ !contains(github.event.head_commit.message, '[skip ci]') || !contains(github.event.head_commit.message, '[skip test]') }}
119
134
needs : [Build]
120
135
runs-on : ${{ matrix.os }}
@@ -141,10 +156,6 @@ jobs:
141
156
uses : actions/download-artifact@v3
142
157
with :
143
158
name : dist
144
- - name : Place Dist
145
- shell : bash
146
- run : |
147
- mv -v artifact/* ./
148
159
149
160
- name : Setup Node
150
161
uses : actions/setup-node@v3
@@ -156,13 +167,24 @@ jobs:
156
167
with :
157
168
version : ${{ matrix.pnpm }}
158
169
159
- # - name: Setup SSH debugging session
160
- # uses: mxschmitt/action-tmate@v3
170
+ - name : Cache node_modules
171
+ uses : actions/cache@v3
172
+ with :
173
+ path : |
174
+ ~/.pnpm-store
175
+ D:\.pnpm-store
176
+ ./node_modules
177
+ key : " setupcpp-node_modules-cache-OS:${{ matrix.os }}-node:${{ matrix.node }}-pnpm:${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-deps:${{ hashFiles('./package.json') }}"
178
+ restore-keys : |
179
+ "setupcpp-node_modules-cache-OS:${{ matrix.os }}-"
161
180
162
181
- name : Install
163
182
run : |
164
183
pnpm install
165
184
185
+ # - name: Setup SSH debugging session
186
+ # uses: mxschmitt/action-tmate@v3
187
+
166
188
- name : Test
167
189
run : |
168
190
pnpm run test
@@ -184,7 +206,7 @@ jobs:
184
206
node ./dist/actions/setup-cpp.js --help
185
207
186
208
Docker :
187
- name : ${{ matrix.container }}
209
+ name : Test- ${{ matrix.container }}
188
210
if : ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip test]') }}
189
211
needs : [Build]
190
212
runs-on : ${{ matrix.os }}
@@ -213,10 +235,6 @@ jobs:
213
235
uses : actions/download-artifact@v3
214
236
with :
215
237
name : dist
216
- - name : Place Dist
217
- shell : bash
218
- run : |
219
- mv -v artifact/* ./
220
238
221
239
- name : Build
222
240
id : docker_build
@@ -226,7 +244,7 @@ jobs:
226
244
227
245
Release :
228
246
if : startsWith(github.ref, 'refs/tags/')
229
- needs : [Build, Build_Executable , Test, Docker]
247
+ needs : [Build, BuildExecutable , Test, Docker]
230
248
runs-on : ubuntu-22.04
231
249
steps :
232
250
- name : Download All Artifacts
0 commit comments