Skip to content

Commit 6ffb79c

Browse files
committed
[DEBUG] Run nightly
1 parent 3b1854d commit 6ffb79c

File tree

1 file changed

+3
-249
lines changed

1 file changed

+3
-249
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 249 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Various non-standard tests, requiring e.g. longer run
22
name: Nightly
33

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.
55
on:
6+
push:
7+
pull_request:
68
workflow_dispatch:
79
schedule:
810
- cron: '0 4 * * *'
@@ -15,83 +17,6 @@ env:
1517
INSTALL_DIR: "${{github.workspace}}/build/install"
1618

1719
jobs:
18-
fuzz-test:
19-
name: Fuzz test
20-
strategy:
21-
fail-fast: false
22-
matrix:
23-
build_type: [Debug, Release]
24-
compiler: [{c: clang, cxx: clang++}]
25-
26-
runs-on: ubuntu-latest
27-
28-
steps:
29-
- name: Checkout repository
30-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31-
with:
32-
fetch-depth: 0
33-
34-
- name: Install apt packages
35-
run: |
36-
sudo apt-get update
37-
sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev
38-
39-
- name: Configure CMake
40-
run: >
41-
cmake
42-
-B ${{github.workspace}}/build
43-
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
44-
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
45-
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
46-
-DUMF_TESTS_FAIL_ON_SKIP=ON
47-
-DUMF_DEVELOPER_MODE=ON
48-
-DUMF_BUILD_FUZZTESTS=ON
49-
50-
- name: Build
51-
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --verbose -j$(nproc)
52-
53-
- name: Fuzz long test
54-
working-directory: ${{github.workspace}}/build
55-
run: ctest -C ${{matrix.build_type}} --output-on-failure --verbose -L "fuzz-long"
56-
57-
valgrind:
58-
name: Valgrind
59-
strategy:
60-
fail-fast: false
61-
matrix:
62-
tool: ['memcheck', 'drd', 'helgrind']
63-
runs-on: ubuntu-latest
64-
65-
steps:
66-
- name: Checkout repository
67-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
68-
with:
69-
fetch-depth: 0
70-
71-
- name: Install apt packages
72-
run: |
73-
sudo apt-get update
74-
sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev valgrind
75-
76-
- name: Configure CMake
77-
run: >
78-
cmake
79-
-B ${{github.workspace}}/build
80-
-DCMAKE_BUILD_TYPE=Debug
81-
-DUMF_FORMAT_CODE_STYLE=OFF
82-
-DUMF_DEVELOPER_MODE=ON
83-
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
84-
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF
85-
-DUMF_BUILD_CUDA_PROVIDER=OFF
86-
-DUMF_USE_VALGRIND=1
87-
-DUMF_TESTS_FAIL_ON_SKIP=ON
88-
89-
- name: Build
90-
run: cmake --build ${{github.workspace}}/build --config Debug -j$(nproc)
91-
92-
- name: Run tests under valgrind
93-
run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}}
94-
9520
Windows-generators:
9621
name: Windows ${{matrix.generator}} generator
9722
strategy:
@@ -178,174 +103,3 @@ jobs:
178103
--umf-version ${{env.UMF_VERSION}}
179104
${{ matrix.shared_library == 'ON' && '--shared-library' || ''}}
180105
${{ matrix.umfd_lib == 'ON' && '--umfd-lib' || ''}}
181-
182-
icx:
183-
name: ICX
184-
env:
185-
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"
186-
strategy:
187-
matrix:
188-
os: ['windows-2019', 'windows-2022']
189-
build_type: [Debug]
190-
compiler: [{c: icx, cxx: icx}]
191-
shared_library: ['ON', 'OFF']
192-
include:
193-
- os: windows-2022
194-
build_type: Release
195-
compiler: {c: icx, cxx: icx}
196-
shared_library: 'ON'
197-
198-
runs-on: ${{matrix.os}}
199-
200-
steps:
201-
- name: Checkout
202-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
203-
with:
204-
fetch-depth: 0
205-
206-
- name: Initialize vcpkg
207-
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
208-
with:
209-
vcpkgGitCommitId: ea2a964f9303270322cf3f2d51c265ba146c422d # 1.04.2025
210-
vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg
211-
vcpkgJsonGlob: '**/vcpkg.json'
212-
213-
- name: Install dependencies
214-
run: vcpkg install --triplet x64-windows
215-
216-
- name: Install Ninja
217-
uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
218-
219-
- name: Download icx compiler
220-
env:
221-
# Link source: https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html
222-
CMPLR_LINK: "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/15a35578-2f9a-4f39-804b-3906e0a5f8fc/w_dpcpp-cpp-compiler_p_2024.2.1.83_offline.exe"
223-
run: |
224-
Invoke-WebRequest -Uri "${{ env.CMPLR_LINK }}" -OutFile compiler_install.exe
225-
226-
- name: Install icx compiler
227-
shell: cmd
228-
run: |
229-
start /b /wait .\compiler_install.exe -s -x -f extracted --log extract.log
230-
extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 ^
231-
-p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=.
232-
233-
- name: Configure build
234-
shell: cmd
235-
run: |
236-
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
237-
call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
238-
cmake ^
239-
-B ${{env.BUILD_DIR}} ^
240-
-DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}" ^
241-
-DCMAKE_C_COMPILER=${{matrix.compiler.c}} ^
242-
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} ^
243-
-G Ninja ^
244-
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} ^
245-
-DUMF_FORMAT_CODE_STYLE=OFF ^
246-
-DUMF_DEVELOPER_MODE=ON ^
247-
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON ^
248-
-DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON ^
249-
-DUMF_BUILD_CUDA_PROVIDER=ON ^
250-
-DUMF_TESTS_FAIL_ON_SKIP=ON
251-
252-
- name: Build UMF
253-
shell: cmd
254-
run: |
255-
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
256-
call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
257-
cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
258-
259-
- name: Run tests
260-
shell: cmd
261-
working-directory: ${{env.BUILD_DIR}}
262-
run: |
263-
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
264-
call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
265-
ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
266-
267-
# Scenarios where UMF_LINK_HWLOC_STATICALLY is set to OFF and hwloc is not installed in the system
268-
# The hwloc library is fetched implicitly
269-
hwloc-fallback:
270-
name: "Fallback to static hwloc build"
271-
strategy:
272-
matrix:
273-
include:
274-
- os: 'ubuntu-latest'
275-
build_type: Release
276-
number_of_processors: '$(nproc)'
277-
- os: 'windows-latest'
278-
build_type: Release
279-
number_of_processors: '$Env:NUMBER_OF_PROCESSORS'
280-
281-
runs-on: ${{matrix.os}}
282-
283-
steps:
284-
- name: Install dependencies
285-
if: matrix.os == 'ubuntu-latest'
286-
run: sudo apt-get install -y libnuma-dev
287-
288-
- name: Checkout
289-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
290-
with:
291-
fetch-depth: 0
292-
293-
- name: Configure build
294-
run: >
295-
cmake
296-
-B ${{env.BUILD_DIR}}
297-
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
298-
-DUMF_BUILD_SHARED_LIBRARY=ON
299-
-DUMF_BUILD_EXAMPLES=OFF
300-
-DUMF_DEVELOPER_MODE=ON
301-
-DUMF_LINK_HWLOC_STATICALLY=OFF
302-
-DUMF_TESTS_FAIL_ON_SKIP=ON
303-
304-
- name: Build UMF
305-
run: >
306-
cmake
307-
--build ${{env.BUILD_DIR}}
308-
--config ${{matrix.build_type}}
309-
-j ${{matrix.number_of_processors}}
310-
311-
- name: Run tests
312-
working-directory: ${{env.BUILD_DIR}}
313-
run: ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
314-
315-
L0:
316-
uses: ./.github/workflows/reusable_gpu.yml
317-
with:
318-
provider: "LEVEL_ZERO"
319-
runner: "L0"
320-
L0-BMG:
321-
uses: ./.github/workflows/reusable_gpu.yml
322-
with:
323-
provider: "LEVEL_ZERO"
324-
runner: "L0-BMG"
325-
os: "['Ubuntu']"
326-
CUDA:
327-
uses: ./.github/workflows/reusable_gpu.yml
328-
with:
329-
provider: "CUDA"
330-
runner: "CUDA"
331-
332-
# Full execution of QEMU tests
333-
QEMU:
334-
uses: ./.github/workflows/reusable_qemu.yml
335-
with:
336-
short_run: false
337-
# Beside the 2 LTS Ubuntu, we also test this on the latest Ubuntu - to be updated
338-
# every 6 months, so we verify the latest version of packages (compilers, etc.).
339-
os: "['ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-24.10']"
340-
341-
Benchmarks:
342-
uses: ./.github/workflows/reusable_benchmarks.yml
343-
permissions:
344-
contents: write
345-
pull-requests: write
346-
with:
347-
pr_no: '0'
348-
bench_script_params: '--save Baseline_PVC'
349-
350-
SYCL:
351-
uses: ./.github/workflows/reusable_sycl.yml

0 commit comments

Comments
 (0)