|
1 | 1 | # Various non-standard tests, requiring e.g. longer run |
2 | 2 | name: Nightly |
3 | 3 |
|
4 | | -# This job is run at 04:00 UTC every day or on demand. |
| 4 | +# This job is run at 04:00 UTC every day, on push, or on pull request. |
5 | 5 | on: |
| 6 | + push: |
| 7 | + pull_request: |
6 | 8 | workflow_dispatch: |
7 | 9 | schedule: |
8 | 10 | - cron: '0 4 * * *' |
|
14 | 16 | BUILD_DIR : "${{github.workspace}}/build" |
15 | 17 |
|
16 | 18 | jobs: |
17 | | - fuzz-test: |
18 | | - name: Fuzz test |
19 | | - strategy: |
20 | | - fail-fast: false |
21 | | - matrix: |
22 | | - build_type: [Debug, Release] |
23 | | - compiler: [{c: clang, cxx: clang++}] |
24 | | - |
25 | | - runs-on: ubuntu-latest |
26 | | - |
27 | | - steps: |
28 | | - - name: Checkout repository |
29 | | - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
30 | | - with: |
31 | | - fetch-depth: 0 |
32 | | - |
33 | | - - name: Install apt packages |
34 | | - run: | |
35 | | - sudo apt-get update |
36 | | - sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev |
37 | | -
|
38 | | - - name: Configure CMake |
39 | | - run: > |
40 | | - cmake |
41 | | - -B ${{github.workspace}}/build |
42 | | - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
43 | | - -DCMAKE_C_COMPILER=${{matrix.compiler.c}} |
44 | | - -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} |
45 | | - -DUMF_TESTS_FAIL_ON_SKIP=ON |
46 | | - -DUMF_DEVELOPER_MODE=ON |
47 | | - -DUMF_BUILD_FUZZTESTS=ON |
48 | | -
|
49 | | - - name: Build |
50 | | - run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --verbose -j$(nproc) |
51 | | - |
52 | | - - name: Fuzz long test |
53 | | - working-directory: ${{github.workspace}}/build |
54 | | - run: ctest -C ${{matrix.build_type}} --output-on-failure --verbose -L "fuzz-long" |
55 | | - |
56 | | - valgrind: |
57 | | - name: Valgrind |
58 | | - strategy: |
59 | | - fail-fast: false |
60 | | - matrix: |
61 | | - tool: ['memcheck', 'drd', 'helgrind'] |
62 | | - runs-on: ubuntu-latest |
63 | | - |
64 | | - steps: |
65 | | - - name: Checkout repository |
66 | | - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
67 | | - with: |
68 | | - fetch-depth: 0 |
69 | | - |
70 | | - - name: Install apt packages |
71 | | - run: | |
72 | | - sudo apt-get update |
73 | | - sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev valgrind |
74 | | -
|
75 | | - - name: Configure CMake |
76 | | - run: > |
77 | | - cmake |
78 | | - -B ${{github.workspace}}/build |
79 | | - -DCMAKE_BUILD_TYPE=Debug |
80 | | - -DUMF_FORMAT_CODE_STYLE=OFF |
81 | | - -DUMF_DEVELOPER_MODE=ON |
82 | | - -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON |
83 | | - -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF |
84 | | - -DUMF_BUILD_CUDA_PROVIDER=OFF |
85 | | - -DUMF_USE_VALGRIND=1 |
86 | | - -DUMF_TESTS_FAIL_ON_SKIP=ON |
87 | | -
|
88 | | - - name: Build |
89 | | - run: cmake --build ${{github.workspace}}/build --config Debug -j$(nproc) |
90 | | - |
91 | | - - name: Run tests under valgrind |
92 | | - run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}} |
93 | | - |
94 | 19 | Windows-generators: |
95 | 20 | name: Windows ${{matrix.generator}} generator |
96 | 21 | strategy: |
@@ -260,89 +185,3 @@ jobs: |
260 | 185 | call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
261 | 186 | call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
262 | 187 | ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test |
263 | | -
|
264 | | - # Scenarios where UMF_LINK_HWLOC_STATICALLY is set to OFF and hwloc is not installed in the system |
265 | | - # The hwloc library is fetched implicitly |
266 | | - hwloc-fallback: |
267 | | - name: "Fallback to static hwloc build" |
268 | | - strategy: |
269 | | - matrix: |
270 | | - include: |
271 | | - - os: 'ubuntu-latest' |
272 | | - build_type: Release |
273 | | - number_of_processors: '$(nproc)' |
274 | | - - os: 'windows-latest' |
275 | | - build_type: Release |
276 | | - number_of_processors: '$Env:NUMBER_OF_PROCESSORS' |
277 | | - |
278 | | - runs-on: ${{matrix.os}} |
279 | | - |
280 | | - steps: |
281 | | - - name: Install dependencies |
282 | | - if: matrix.os == 'ubuntu-latest' |
283 | | - run: sudo apt-get install -y libnuma-dev |
284 | | - |
285 | | - - name: Checkout |
286 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
287 | | - with: |
288 | | - fetch-depth: 0 |
289 | | - |
290 | | - - name: Configure build |
291 | | - run: > |
292 | | - cmake |
293 | | - -B ${{env.BUILD_DIR}} |
294 | | - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
295 | | - -DUMF_BUILD_SHARED_LIBRARY=ON |
296 | | - -DUMF_BUILD_EXAMPLES=OFF |
297 | | - -DUMF_DEVELOPER_MODE=ON |
298 | | - -DUMF_LINK_HWLOC_STATICALLY=OFF |
299 | | - -DUMF_TESTS_FAIL_ON_SKIP=ON |
300 | | -
|
301 | | - - name: Build UMF |
302 | | - run: > |
303 | | - cmake |
304 | | - --build ${{env.BUILD_DIR}} |
305 | | - --config ${{matrix.build_type}} |
306 | | - -j ${{matrix.number_of_processors}} |
307 | | -
|
308 | | - - name: Run tests |
309 | | - working-directory: ${{env.BUILD_DIR}} |
310 | | - run: ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test |
311 | | - |
312 | | - L0: |
313 | | - uses: ./.github/workflows/reusable_gpu.yml |
314 | | - with: |
315 | | - provider: "LEVEL_ZERO" |
316 | | - runner: "L0" |
317 | | - L0-BMG: |
318 | | - uses: ./.github/workflows/reusable_gpu.yml |
319 | | - with: |
320 | | - provider: "LEVEL_ZERO" |
321 | | - runner: "L0-BMG" |
322 | | - os: "['Ubuntu']" |
323 | | - CUDA: |
324 | | - uses: ./.github/workflows/reusable_gpu.yml |
325 | | - with: |
326 | | - provider: "CUDA" |
327 | | - runner: "CUDA" |
328 | | - |
329 | | - # Full execution of QEMU tests |
330 | | - QEMU: |
331 | | - uses: ./.github/workflows/reusable_qemu.yml |
332 | | - with: |
333 | | - short_run: false |
334 | | - # Beside the 2 LTS Ubuntu, we also test this on the latest Ubuntu - to be updated |
335 | | - # every 6 months, so we verify the latest version of packages (compilers, etc.). |
336 | | - os: "['ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-24.10']" |
337 | | - |
338 | | - Benchmarks: |
339 | | - uses: ./.github/workflows/reusable_benchmarks.yml |
340 | | - permissions: |
341 | | - contents: write |
342 | | - pull-requests: write |
343 | | - with: |
344 | | - pr_no: '0' |
345 | | - bench_script_params: '--save Baseline_PVC' |
346 | | - |
347 | | - SYCL: |
348 | | - uses: ./.github/workflows/reusable_sycl.yml |
0 commit comments