Skip to content

Commit 6b6fe26

Browse files
committed
Add job with icx/icpx compiler
Signed-off-by: Krzysztof Filipek <[email protected]>
1 parent a87fa0d commit 6b6fe26

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/basic.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,70 @@ env:
77
INSTL_DIR : "${{github.workspace}}/build/install-dir"
88

99
jobs:
10+
icx-build:
11+
name: Build - Intel C++ Compiler
12+
strategy:
13+
matrix:
14+
build_type: [Debug, Release]
15+
compiler: [{c: icx, cxx: icpx}]
16+
pool_tracking: ['ON', 'OFF']
17+
shared_library: ['OFF']
18+
os_provider: ['ON']
19+
sanitizers: [{asan: OFF, ubsan: OFF, tsan: OFF}]
20+
runs-on: ubuntu-22.04
21+
container:
22+
image: intel/oneapi:latest
23+
volumes:
24+
- ${{github.workspace}}:${{github.workspace}}
25+
options: "--privileged"
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Install apt packages
32+
run: |
33+
apt-get update
34+
apt-get install -y libnuma-dev libjemalloc-dev libtbb-dev
35+
36+
- name: Configure build
37+
run: >
38+
cmake
39+
-B build
40+
-DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
41+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
42+
-DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}}
43+
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
44+
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
45+
-DUMF_BUILD_OS_MEMORY_PROVIDER=${{matrix.os_provider}}
46+
-DUMF_ENABLE_POOL_TRACKING=${{matrix.pool_tracking}}
47+
-DUMF_FORMAT_CODE_STYLE=OFF
48+
-DUMF_DEVELOPER_MODE=ON
49+
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON
50+
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON
51+
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=ON
52+
-DUSE_ASAN=${{matrix.sanitizers.asan}}
53+
-DUSE_UBSAN=${{matrix.sanitizers.ubsan}}
54+
-DUSE_TSAN=${{matrix.sanitizers.tsan}}
55+
56+
- name: Build UMF
57+
run: |
58+
cmake --build build -j $(nproc)
59+
60+
- name: Run tests
61+
working-directory: ${{github.workspace}}/build
62+
run: |
63+
ctest --output-on-failure
64+
65+
- name: Test make install
66+
working-directory: ${{env.BUILD_DIR}}
67+
run: ${{github.workspace}}/test/test_make_install.sh \
68+
${{github.workspace}} ${{env.BUILD_DIR}} ${{env.INSTL_DIR}} ${{matrix.build_type}} ${{matrix.shared_library}}
69+
70+
- name: Test make uninstall
71+
working-directory: ${{env.BUILD_DIR}}
72+
run: ${{github.workspace}}/test/test_make_uninstall.sh ${{github.workspace}} ${{env.BUILD_DIR}} ${{env.INSTL_DIR}}
73+
1074
ubuntu-build:
1175
name: Build - Ubuntu
1276
strategy:

0 commit comments

Comments
 (0)