File tree Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Expand file tree Collapse file tree 4 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ jobs:
174
174
175
175
windows-build :
176
176
name : Windows
177
+ env :
178
+ HWLOC_PATH : " C:\\ vcpkg\\ packages\\ hwloc_x64-windows\\ "
177
179
strategy :
178
180
matrix :
179
181
os : ['windows-2019', 'windows-2022']
@@ -208,11 +210,23 @@ jobs:
208
210
- name : Checkout
209
211
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
210
212
213
+ - name : Cache hwloc vcpkg package
214
+ uses : actions/cache@v4
215
+ id : cache-hwloc-package
216
+ with :
217
+ path : ${{ env.HWLOC_PATH }}
218
+ key : vcpkg-packages-1
219
+
220
+ - if : ${{ steps.cache-hwloc-package.outputs.cache-hit != 'true' }}
221
+ name : Install vcpkg packages
222
+ run : vcpkg install hwloc
223
+
211
224
- name : Configure build
212
225
run : >
213
226
cmake
214
227
-B ${{env.BUILD_DIR}}
215
228
${{matrix.toolset}}
229
+ -DCMAKE_PREFIX_PATH=${{env.HWLOC_PATH}}
216
230
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
217
231
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
218
232
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
Original file line number Diff line number Diff line change 19
19
name : Analyze
20
20
permissions :
21
21
security-events : write
22
+ env :
23
+ HWLOC_PATH : " C:\\ vcpkg\\ packages\\ hwloc_x64-windows\\ "
22
24
strategy :
23
25
fail-fast : false
24
26
matrix :
41
43
with :
42
44
languages : cpp
43
45
46
+ - if : ${{ matrix.os == 'windows-latest' }}
47
+ name : Cache hwloc vcpkg package
48
+ uses : actions/cache@v4
49
+ id : cache-hwloc-package
50
+ with :
51
+ path : ${{ env.HWLOC_PATH }}
52
+ key : vcpkg-packages-1
53
+
54
+ - if : ${{ matrix.os == 'windows-latest' }} && ${{ steps.cache-hwloc-package.outputs.cache-hit != 'true' }}
55
+ name : Install vcpkg packages
56
+ run : vcpkg install hwloc
57
+
44
58
- name : Install apt packages
45
59
if : matrix.os == 'ubuntu-latest'
46
60
run : |
55
69
cmake
56
70
-B ${{github.workspace}}/build
57
71
${{matrix.extra_build_option}}
72
+ -DCMAKE_PREFIX_PATH=${{env.HWLOC_PATH}}
58
73
-DUMF_FORMAT_CODE_STYLE=OFF
59
74
-DUMF_DEVELOPER_MODE=ON
60
75
-DUMF_ENABLE_POOL_TRACKING=ON
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ permissions:
13
13
jobs :
14
14
FastBuild :
15
15
name : Fast build
16
+ env :
17
+ HWLOC_PATH : " C:\\ vcpkg\\ packages\\ hwloc_x64-windows\\ "
16
18
strategy :
17
19
matrix :
18
20
include :
47
49
- name : Checkout repository
48
50
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
49
51
52
+ - if : ${{ matrix.os == 'windows-latest' }}
53
+ name : Cache hwloc vcpkg package
54
+ uses : actions/cache@v4
55
+ id : cache-hwloc-package
56
+ with :
57
+ path : ${{ env.HWLOC_PATH }}
58
+ key : vcpkg-packages-1
59
+
60
+ - if : ${{ matrix.os == 'windows-latest' }} && ${{ steps.cache-hwloc-package.outputs.cache-hit != 'true' }}
61
+ name : Install vcpkg packages
62
+ run : vcpkg install hwloc
63
+
50
64
- name : Install apt packages
51
65
if : matrix.os == 'ubuntu-latest'
52
66
run : |
57
71
run : >
58
72
cmake
59
73
-B ${{github.workspace}}/build
74
+ -DCMAKE_PREFIX_PATH=${{env.HWLOC_PATH}}
60
75
-DUMF_FORMAT_CODE_STYLE=OFF
61
76
-DUMF_DEVELOPER_MODE=ON
62
77
-DUMF_ENABLE_POOL_TRACKING=ON
Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ jobs:
108
108
109
109
windows-build :
110
110
name : cl and clang-cl on Windows
111
+ env :
112
+ HWLOC_PATH : " C:\\ vcpkg\\ packages\\ hwloc_x64-windows\\ "
111
113
strategy :
112
114
matrix :
113
115
compiler : [{c: cl, cxx: cl}, {c: clang-cl, cxx: clang-cl}]
@@ -131,12 +133,24 @@ jobs:
131
133
arch : x64
132
134
toolset : 14.38.33130
133
135
136
+ - name : Cache hwloc vcpkg package
137
+ uses : actions/cache@v4
138
+ id : cache-hwloc-package
139
+ with :
140
+ path : ${{ env.HWLOC_PATH }}
141
+ key : vcpkg-packages-1
142
+
143
+ - if : ${{ steps.cache-hwloc-package.outputs.cache-hit != 'true' }}
144
+ name : Install vcpkg packages
145
+ run : vcpkg install hwloc
146
+
134
147
- name : Configure build
135
148
run : >
136
149
cmake
137
150
-B ${{env.BUILD_DIR}}
138
151
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
139
152
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
153
+ -DCMAKE_PREFIX_PATH=${{env.HWLOC_PATH}}
140
154
-DUMF_BUILD_SHARED_LIBRARY=OFF
141
155
-DUMF_ENABLE_POOL_TRACKING=OFF
142
156
-DUMF_FORMAT_CODE_STYLE=OFF
You can’t perform that action at this time.
0 commit comments