@@ -107,6 +107,43 @@ jobs:
107
107
- name : Run tests under valgrind
108
108
run : ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}}
109
109
110
+ Linux-FetchContent :
111
+ runs-on : ubuntu-latest
112
+ container :
113
+ image : ghcr.io/bb-ur/umf-${{ matrix.os }}:latest
114
+ options : --user test_user --cap-add=SYS_NICE --cap-add=SYS_PTRACE
115
+ volumes :
116
+ - ${{ github.workspace }}:${{ github.workspace }}
117
+ strategy :
118
+ fail-fast : false
119
+ matrix :
120
+ os : ['ubuntu-24.04']
121
+ build_type : [Debug]
122
+ name : FetchContent-Linux (${{matrix.os}}, build_type=${{matrix.build_type}})
123
+
124
+ steps :
125
+ - name : Checkout repository
126
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
127
+ with :
128
+ fetch-depth : 0
129
+
130
+ - name : Configure the fetch_content example
131
+ working-directory : ${{github.workspace}}/examples/fetch_content
132
+ # Fetch_Content the UMF code from the current repository (-DUMF_REPO="${{github.workspace}}")
133
+ run : >
134
+ cmake
135
+ -B ${{github.workspace}}/examples/fetch_content/build
136
+ -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
137
+ -DUMF_REPO="${{github.workspace}}"
138
+
139
+ - name : Build the fetch_content example
140
+ working-directory : ${{github.workspace}}/examples/fetch_content
141
+ run : cmake --build ${{github.workspace}}/examples/fetch_content/build --config ${{matrix.build_type}} -j $(nproc)
142
+
143
+ - name : Run the fetch_content example
144
+ working-directory : ${{github.workspace}}/examples/fetch_content/build
145
+ run : ./umf_example_fetch_content
146
+
110
147
# Build and test UMF with different CMake generators on Windows
111
148
Windows-generators :
112
149
strategy :
@@ -201,6 +238,32 @@ jobs:
201
238
${{ matrix.umfd_lib == 'ON' && '--umfd-lib' || ''}}
202
239
${{ matrix.static_hwloc == 'ON' && '--hwloc' || '' }}
203
240
241
+ - name : Set VCPKG_PATH with hwloc for the fetch_content example
242
+ run : echo "VCPKG_PATH=${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows" >> $env:GITHUB_ENV
243
+
244
+ - name : Configure the fetch_content example
245
+ working-directory : ${{github.workspace}}/examples/fetch_content
246
+ # Fetch_Content the UMF code from the current repository (-DUMF_REPO="${{github.workspace}}")
247
+ run : >
248
+ cmake
249
+ -B ${{github.workspace}}/examples/fetch_content/build
250
+ -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
251
+ -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
252
+ -DUMF_REPO="${{github.workspace}}"
253
+ -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
254
+ -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
255
+ -G "${{matrix.generator}}"
256
+
257
+ - name : Build the fetch_content example
258
+ working-directory : ${{github.workspace}}/examples/fetch_content
259
+ shell : cmd
260
+ run : cmake --build ${{github.workspace}}/examples/fetch_content/build --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
261
+
262
+ - name : Run the fetch_content example
263
+ shell : cmd
264
+ working-directory : ${{github.workspace}}/examples/fetch_content/build
265
+ run : dir .\umf_example_fetch_content.exe
266
+
204
267
# Build and test UMF with Intel C++ Compiler (ICX) on Windows
205
268
Windows-icx :
206
269
env :
0 commit comments