|
13 | 13 | required: true |
14 | 14 | description: | |
15 | 15 | JSON list of {arch,runner,remote} build configurations |
16 | | - cmake-flags-list-json: |
17 | | - type: string |
18 | | - required: false |
19 | | - default: "['-DCMAKE_BUILD_TYPE=Release','-DADDRESS_SANITIZER=ON -DCMAKE_BUILD_TYPE=Debug','-DUSE_VALGRIND=ON -DCMAKE_BUILD_TYPE=Debug']" |
20 | | - description: | |
21 | | - JSON list of cmake flags for unit tests |
22 | 16 |
|
23 | 17 | jobs: |
24 | | - unit-tests-amd64: |
25 | | - if: contains(inputs.include-arch-json, 'amd64') |
26 | | - runs-on: ubuntu-24.04 |
| 18 | + unit-tests: |
27 | 19 | container: |
28 | 20 | image: quay.io/stackrox-io/collector-builder:${{ inputs.collector-builder-tag }} |
29 | 21 | strategy: |
| 22 | + fail-fast: false |
30 | 23 | matrix: |
31 | | - cmake-flags: ${{ fromJSON(inputs.cmake-flags-list-json) }} |
32 | | - steps: |
33 | | - - uses: actions/checkout@v4 |
34 | | - with: |
35 | | - submodules: true |
36 | | - - uses: ./.github/actions/run-unit-tests |
37 | | - with: |
38 | | - cmake-flags: ${{ matrix.cmake-flags }} |
| 24 | + arch: [amd64, arm64] |
| 25 | + cmake-flags: |
| 26 | + - -DCMAKE_BUILD_TYPE=Release |
| 27 | + - -DADDRESS_SANITIZER=ON -DCMAKE_BUILD_TYPE=Debug |
| 28 | + - -DUSE_VALGRIND=ON -DCMAKE_BUILD_TYPE=Debug |
| 29 | + runs-on: ${{ (matrix.arch == 'arm64' && 'ubuntu-22.04-arm') || 'ubuntu-22.04' }} |
39 | 30 |
|
40 | | - unit-tests-arm64: |
41 | | - if: contains(inputs.include-arch-json, 'arm64') |
42 | | - runs-on: ubuntu-24.04-arm |
43 | | - container: |
44 | | - image: quay.io/stackrox-io/collector-builder:${{ inputs.collector-builder-tag }} |
45 | | - strategy: |
46 | | - matrix: |
47 | | - cmake-flags: ${{ fromJSON(inputs.cmake-flags-list-json) }} |
48 | 31 | steps: |
49 | 32 | - uses: actions/checkout@v4 |
50 | 33 | with: |
51 | 34 | submodules: true |
| 35 | + |
52 | 36 | - uses: ./.github/actions/run-unit-tests |
53 | 37 | with: |
54 | 38 | cmake-flags: ${{ matrix.cmake-flags }} |
55 | 39 |
|
56 | | - unit-tests-coverage: |
57 | | - if: contains(inputs.include-arch-json, 'arm64') |
58 | | - runs-on: ubuntu-24.04-arm |
| 40 | + coverage: |
| 41 | + runs-on: ubuntu-24.04 |
59 | 42 | container: |
60 | 43 | image: quay.io/stackrox-io/collector-builder:${{ inputs.collector-builder-tag }} |
61 | 44 | steps: |
|
0 commit comments