|
15 | 15 | INSTALL_DIR: "${{github.workspace}}/build/install" |
16 | 16 |
|
17 | 17 | 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++}] |
| 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 | 25 |
|
26 | | - runs-on: ubuntu-latest |
27 | | - |
28 | | - steps: |
29 | | - - name: Checkout repository |
30 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
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: Find Clang fuzzer lib |
40 | | - run: | |
41 | | - CLANG_LIBS_DIR=$(find /usr/lib -name "libclang_rt.fuzzer_no_main-x86_64.a" -exec dirname {} \; | head -n 1) |
42 | | - echo "CLANG_LIBS_DIR=${CLANG_LIBS_DIR}" >> $GITHUB_ENV |
43 | | -
|
44 | | - - name: Configure CMake |
45 | | - run: > |
46 | | - cmake |
47 | | - -B ${{github.workspace}}/build |
48 | | - -DCMAKE_PREFIX_PATH=${{env.CLANG_LIBS_DIR}} |
49 | | - -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
50 | | - -DCMAKE_C_COMPILER=${{matrix.compiler.c}} |
51 | | - -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} |
52 | | - -DUMF_BUILD_SHARED_LIBRARY=ON |
53 | | - -DUMF_TESTS_FAIL_ON_SKIP=ON |
54 | | - -DUMF_DEVELOPER_MODE=ON |
55 | | - -DUMF_BUILD_FUZZTESTS=ON |
56 | | -
|
57 | | - - name: Build |
58 | | - run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --verbose -j$(nproc) |
59 | | - |
60 | | - - name: Run regular tests |
61 | | - working-directory: ${{github.workspace}}/build |
62 | | - run: ctest -C ${{matrix.build_type}} --output-on-failure -E "fuzz|test_init_teardown" |
63 | | - |
64 | | - - name: Run regular tests with proxy library |
65 | | - working-directory: ${{env.BUILD_DIR}} |
66 | | - run: LD_PRELOAD=./lib/libumf_proxy.so ctest -C ${{matrix.build_type}} --output-on-failure -E "fuzz|test_init_teardown" |
67 | | - |
68 | | - - name: Fuzz long test |
69 | | - working-directory: ${{github.workspace}}/build |
70 | | - run: ctest -C ${{matrix.build_type}} --output-on-failure --verbose -L "fuzz-long" |
71 | | - |
72 | | - valgrind: |
73 | | - name: Valgrind |
74 | | - strategy: |
75 | | - fail-fast: false |
76 | | - matrix: |
77 | | - tool: ['memcheck', 'drd', 'helgrind'] |
78 | | - runs-on: ubuntu-latest |
79 | | - |
80 | | - steps: |
81 | | - - name: Checkout repository |
82 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
83 | | - with: |
84 | | - fetch-depth: 0 |
85 | | - |
86 | | - - name: Install apt packages |
87 | | - run: | |
88 | | - sudo apt-get update |
89 | | - sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev valgrind |
90 | | -
|
91 | | - - name: Configure CMake |
92 | | - run: > |
93 | | - cmake |
94 | | - -B ${{github.workspace}}/build |
95 | | - -DCMAKE_BUILD_TYPE=Debug |
96 | | - -DUMF_FORMAT_CODE_STYLE=OFF |
97 | | - -DUMF_DEVELOPER_MODE=ON |
98 | | - -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON |
99 | | - -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF |
100 | | - -DUMF_BUILD_CUDA_PROVIDER=OFF |
101 | | - -DUMF_USE_VALGRIND=1 |
102 | | - -DUMF_TESTS_FAIL_ON_SKIP=ON |
103 | | -
|
104 | | - - name: Build |
105 | | - run: cmake --build ${{github.workspace}}/build --config Debug -j$(nproc) |
106 | | - |
107 | | - - name: Run tests under valgrind |
108 | | - run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}} |
| 26 | +# runs-on: ubuntu-latest |
| 27 | + |
| 28 | +# steps: |
| 29 | +# - name: Checkout repository |
| 30 | +# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 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: Find Clang fuzzer lib |
| 40 | +# run: | |
| 41 | +# CLANG_LIBS_DIR=$(find /usr/lib -name "libclang_rt.fuzzer_no_main-x86_64.a" -exec dirname {} \; | head -n 1) |
| 42 | +# echo "CLANG_LIBS_DIR=${CLANG_LIBS_DIR}" >> $GITHUB_ENV |
| 43 | + |
| 44 | +# - name: Configure CMake |
| 45 | +# run: > |
| 46 | +# cmake |
| 47 | +# -B ${{github.workspace}}/build |
| 48 | +# -DCMAKE_PREFIX_PATH=${{env.CLANG_LIBS_DIR}} |
| 49 | +# -DCMAKE_BUILD_TYPE=${{matrix.build_type}} |
| 50 | +# -DCMAKE_C_COMPILER=${{matrix.compiler.c}} |
| 51 | +# -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} |
| 52 | +# -DUMF_BUILD_SHARED_LIBRARY=ON |
| 53 | +# -DUMF_TESTS_FAIL_ON_SKIP=ON |
| 54 | +# -DUMF_DEVELOPER_MODE=ON |
| 55 | +# -DUMF_BUILD_FUZZTESTS=ON |
| 56 | + |
| 57 | +# - name: Build |
| 58 | +# run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --verbose -j$(nproc) |
| 59 | + |
| 60 | +# - name: Run regular tests |
| 61 | +# working-directory: ${{github.workspace}}/build |
| 62 | +# run: ctest -C ${{matrix.build_type}} --output-on-failure -E "fuzz|test_init_teardown" |
| 63 | + |
| 64 | +# - name: Run regular tests with proxy library |
| 65 | +# working-directory: ${{env.BUILD_DIR}} |
| 66 | +# run: LD_PRELOAD=./lib/libumf_proxy.so ctest -C ${{matrix.build_type}} --output-on-failure -E "fuzz|test_init_teardown" |
| 67 | + |
| 68 | +# - name: Fuzz long test |
| 69 | +# working-directory: ${{github.workspace}}/build |
| 70 | +# run: ctest -C ${{matrix.build_type}} --output-on-failure --verbose -L "fuzz-long" |
| 71 | + |
| 72 | + # valgrind: |
| 73 | + # name: Valgrind |
| 74 | + # strategy: |
| 75 | + # fail-fast: false |
| 76 | + # matrix: |
| 77 | + # tool: ['memcheck', 'drd', 'helgrind'] |
| 78 | + # runs-on: ubuntu-latest |
| 79 | + |
| 80 | + # steps: |
| 81 | + # - name: Checkout repository |
| 82 | + # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 83 | + # with: |
| 84 | + # fetch-depth: 0 |
| 85 | + |
| 86 | + # - name: Install apt packages |
| 87 | + # run: | |
| 88 | + # sudo apt-get update |
| 89 | + # sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev valgrind |
| 90 | + |
| 91 | + # - name: Configure CMake |
| 92 | + # run: > |
| 93 | + # cmake |
| 94 | + # -B ${{github.workspace}}/build |
| 95 | + # -DCMAKE_BUILD_TYPE=Debug |
| 96 | + # -DUMF_FORMAT_CODE_STYLE=OFF |
| 97 | + # -DUMF_DEVELOPER_MODE=ON |
| 98 | + # -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON |
| 99 | + # -DUMF_BUILD_LEVEL_ZERO_PROVIDER=OFF |
| 100 | + # -DUMF_BUILD_CUDA_PROVIDER=OFF |
| 101 | + # -DUMF_USE_VALGRIND=1 |
| 102 | + # -DUMF_TESTS_FAIL_ON_SKIP=ON |
| 103 | + |
| 104 | + # - name: Build |
| 105 | + # run: cmake --build ${{github.workspace}}/build --config Debug -j$(nproc) |
| 106 | + |
| 107 | + # - name: Run tests under valgrind |
| 108 | + # run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}} |
109 | 109 |
|
110 | 110 | Windows-generators: |
111 | 111 | name: Windows ${{matrix.generator}} generator |
@@ -156,10 +156,13 @@ jobs: |
156 | 156 | - name: Install llvm-mingw |
157 | 157 | run: | |
158 | 158 | curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250430/llvm-mingw-20250430-ucrt-x86_64.zip |
| 159 | + - name: Install llvm-mingw (extract) |
| 160 | + run: | |
159 | 161 | powershell Expand-Archive llvm-mingw*.zip -DestinationPath . |
160 | 162 | del llvm-mingw*.zip |
161 | 163 | mv llvm-mingw* c:\llvm-mingw |
162 | 164 | echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append |
| 165 | + dir "c:\llvm-mingw\bin" |
163 | 166 | - name: cmake version |
164 | 167 | run: | |
165 | 168 | cmake --version |
|
0 commit comments