|
7 | 7 | INSTL_DIR : "${{github.workspace}}/build/install-dir"
|
8 | 8 |
|
9 | 9 | 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 libhwloc-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 | + |
10 | 74 | ubuntu-build:
|
11 | 75 | name: Build - Ubuntu
|
12 | 76 | strategy:
|
|
0 commit comments