28
28
shell : bash
29
29
steps :
30
30
- uses : actions/checkout@v2
31
+ - name : cache install
32
+ id : cache-install
33
+ uses : actions/cache@v2
34
+ with :
35
+ path : C:\Program Files (x86)\Intel\oneAPI\compiler
36
+ key : install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_CPP_COMPONENTS }}-compiler
31
37
- name : install
38
+ if : steps.cache-install.outputs.cache-hit != 'true'
32
39
run : scripts/install_windows.bat $WINDOWS_HPCKIT_URL $WINDOWS_CPP_COMPONENTS
33
40
- name : build
34
41
run : scripts/build_windows.bat c++
52
59
shell : bash
53
60
steps :
54
61
- uses : actions/checkout@v2
62
+ - name : cache install
63
+ id : cache-install
64
+ uses : actions/cache@v2
65
+ with :
66
+ path : C:\Program Files (x86)\Intel\oneAPI\compiler
67
+ key : install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_FORTRAN_COMPONENTS }}-compiler
55
68
- name : install
69
+ if : steps.cache-install.outputs.cache-hit != 'true'
56
70
run : scripts/install_windows.bat $WINDOWS_HPCKIT_URL $WINDOWS_FORTRAN_COMPONENTS
57
71
- name : build
58
72
run : scripts/build_windows.bat fortran
76
90
shell : bash
77
91
steps :
78
92
- uses : actions/checkout@v2
93
+ - name : cache install
94
+ id : cache-install
95
+ uses : actions/cache@v2
96
+ with :
97
+ path : |
98
+ C:\Program Files (x86)\Intel\oneAPI\compiler
99
+ C:\Program Files (x86)\Intel\oneAPI\tbb
100
+ C:\Windows\System32\OpenCL.dll
101
+ key : install-${{ env.WINDOWS_BASEKIT_URL }}-${{ env.WINDOWS_DPCPP_COMPONENTS }}-compiler-tbb-opencl
79
102
- name : install
103
+ if : steps.cache-install.outputs.cache-hit != 'true'
80
104
run : scripts/install_windows.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_COMPONENTS
81
105
- name : build
82
106
run : scripts/build_windows.bat dpc++
@@ -166,7 +190,18 @@ jobs:
166
190
shell : bash
167
191
steps :
168
192
- uses : actions/checkout@v2
193
+ - name : prepare for cache restore
194
+ run : |
195
+ sudo mkdir -p /opt/intel
196
+ sudo chown $USER /opt/intel
197
+ - name : cache install
198
+ id : cache-install
199
+ uses : actions/cache@v2
200
+ with :
201
+ path : /opt/intel/oneapi
202
+ key : install-${{ env.MACOS_HPCKIT_URL }}-${{ env.MACOS_CPP_COMPONENTS }}
169
203
- name : install
204
+ if : steps.cache-install.outputs.cache-hit != 'true'
170
205
run : scripts/install_macos.sh $MACOS_HPCKIT_URL $MACOS_CPP_COMPONENTS
171
206
- name : build
172
207
run : scripts/build_macos.sh c++
@@ -189,7 +224,18 @@ jobs:
189
224
shell : bash
190
225
steps :
191
226
- uses : actions/checkout@v2
227
+ - name : Prepare for cache restore
228
+ run : |
229
+ sudo mkdir -p /opt/intel
230
+ sudo chown $USER /opt/intel
231
+ - name : cache install
232
+ id : cache-install
233
+ uses : actions/cache@v2
234
+ with :
235
+ path : /opt/intel/oneapi
236
+ key : install-${{ env.MACOS_HPCKIT_URL }}-${{ env.MACOS_FORTRAN_COMPONENTS }}
192
237
- name : install
238
+ if : steps.cache-install.outputs.cache-hit != 'true'
193
239
run : scripts/install_macos.sh $MACOS_HPCKIT_URL $MACOS_FORTRAN_COMPONENTS
194
240
- name : build
195
241
run : scripts/build_macos.sh fortran
0 commit comments