File tree Expand file tree Collapse file tree 5 files changed +67
-0
lines changed Expand file tree Collapse file tree 5 files changed +67
-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 : " ${{github.workspace}}/build/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 : Initialize vcpkg
214
+ uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
215
+ with :
216
+ vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
217
+ vcpkgDirectory : ${{github.workspace}}/build/vcpkg
218
+ vcpkgJsonGlob : ' **/vcpkg.json'
219
+
220
+ - name : Install dependencies
221
+ run : vcpkg install
222
+ shell : pwsh # Specifies PowerShell as the shell for running the script.
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 : " ${{github.workspace}}/build/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
+ - name : Initialize vcpkg
47
+ if : ${{ matrix.os == 'windows-latest' }}
48
+ uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
49
+ with :
50
+ vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
51
+ vcpkgDirectory : ${{github.workspace}}/build/vcpkg
52
+ vcpkgJsonGlob : ' **/vcpkg.json'
53
+
54
+ - name : Install dependencies
55
+ if : ${{ matrix.os == 'windows-latest' }}
56
+ run : vcpkg install
57
+ shell : pwsh # Specifies PowerShell as the shell for running the script.
58
+
44
59
- name : Install apt packages
45
60
if : matrix.os == 'ubuntu-latest'
46
61
run : |
55
70
cmake
56
71
-B ${{github.workspace}}/build
57
72
${{matrix.extra_build_option}}
73
+ -DCMAKE_PREFIX_PATH=${{env.HWLOC_PATH}}
58
74
-DUMF_FORMAT_CODE_STYLE=OFF
59
75
-DUMF_DEVELOPER_MODE=ON
60
76
-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 : " ${{github.workspace}}/build/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
+ - name : Initialize vcpkg
53
+ if : ${{ matrix.os == 'windows-latest' }}
54
+ uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
55
+ with :
56
+ vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
57
+ vcpkgDirectory : ${{github.workspace}}/build/vcpkg
58
+ vcpkgJsonGlob : ' **/vcpkg.json'
59
+
60
+ - name : Install dependencies
61
+ if : ${{ matrix.os == 'windows-latest' }}
62
+ run : vcpkg install
63
+ shell : pwsh # Specifies PowerShell as the shell for running the script.
64
+
50
65
- name : Install apt packages
51
66
if : matrix.os == 'ubuntu-latest'
52
67
run : |
57
72
run : >
58
73
cmake
59
74
-B ${{github.workspace}}/build
75
+ -DCMAKE_PREFIX_PATH=${{env.HWLOC_PATH}}
60
76
-DUMF_FORMAT_CODE_STYLE=OFF
61
77
-DUMF_DEVELOPER_MODE=ON
62
78
-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 : " ${{github.workspace}}/build/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 : Initialize vcpkg
137
+ uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
138
+ with :
139
+ vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
140
+ vcpkgDirectory : ${{github.workspace}}/build/vcpkg
141
+ vcpkgJsonGlob : ' **/vcpkg.json'
142
+
143
+ - name : Install dependencies
144
+ run : vcpkg install
145
+ shell : pwsh # Specifies PowerShell as the shell for running the script.
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
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " main" ,
3
+ "version-string" : " 2.10.0" ,
4
+ "dependencies" : [
5
+ " hwloc"
6
+ ]
7
+ }
You can’t perform that action at this time.
0 commit comments