|
10 | 10 | jobs: |
11 | 11 | analyze: |
12 | 12 | name: Analyze (${{matrix.language}}) |
13 | | - runs-on: 'ubuntu-latest' |
| 13 | + runs-on: X64 |
14 | 14 |
|
15 | 15 | strategy: |
16 | 16 | fail-fast: false |
17 | 17 | matrix: |
18 | 18 | include: |
19 | 19 | - language: c-cpp |
20 | 20 | build-mode: manual |
| 21 | + compiler: clang |
| 22 | + machine: linux_clang_x86_64 |
| 23 | + compiler-version: 15.0.6 |
| 24 | + extras: rpath no-agave |
| 25 | + env: |
| 26 | + MACHINE: ${{ matrix.machine }} |
| 27 | + EXTRAS: ${{ matrix.extras || '' }} |
| 28 | + CC: ${{ matrix.compiler }} |
| 29 | + CXX: ${{ matrix.compiler == 'gcc' && 'g++' || 'clang++' }} |
21 | 30 | steps: |
22 | | - - name: Checkout repository |
23 | | - uses: actions/checkout@v4 |
24 | | - with: |
25 | | - submodules: recursive |
26 | | - - name: Install system dependencies |
27 | | - shell: bash |
28 | | - run: | |
29 | | - sudo apt-get install -y gettext autopoint gcc-multilib protobuf-compiler llvm lcov libudev-dev cmake libclang-dev |
30 | | - - name: Install dependencies |
31 | | - shell: bash |
32 | | - run: | |
33 | | - echo "y" | ./deps.sh |
34 | | - - name: Initialize CodeQL |
35 | | - uses: github/codeql-action/init@v3 |
36 | | - with: |
37 | | - languages: ${{ matrix.language }} |
38 | | - build-mode: ${{ matrix.build-mode }} |
39 | | - queries: ./contrib/codeql/ |
40 | | - config: | |
41 | | - disable-default-queries: true |
42 | | - - if: matrix.build-mode == 'manual' |
43 | | - shell: bash |
44 | | - run: | |
45 | | - MACHINE=linux_clang_noarch64 make -j unit-test |
46 | | - - name: Perform CodeQL Analysis |
47 | | - uses: github/codeql-action/analyze@v3 |
48 | | - with: |
49 | | - category: "/language:${{matrix.language}}" |
50 | | - upload: 'always' |
| 31 | + - uses: actions/checkout@v4 |
| 32 | + with: |
| 33 | + submodules: recursive |
| 34 | + - uses: ./.github/actions/deps |
| 35 | + with: |
| 36 | + compiler: ${{ matrix.compiler }} |
| 37 | + compiler-version: ${{ matrix.compiler-version }} |
| 38 | + |
| 39 | + - name: clean targets |
| 40 | + run: | |
| 41 | + make clean --silent >/dev/null |
| 42 | + - uses: ./.github/actions/submodule |
| 43 | + with: |
| 44 | + machine: ${{ matrix.machine }} |
| 45 | + compiler: ${{ matrix.compiler }} |
| 46 | + compiler-version: ${{ matrix.compiler-version }} |
| 47 | + if: ${{ contains(matrix.targets, 'fdctl') && !contains(matrix.extras, 'no-agave') }} |
| 48 | + - name: Initialize CodeQL |
| 49 | + uses: github/codeql-action/init@v3 |
| 50 | + with: |
| 51 | + languages: ${{ matrix.language }} |
| 52 | + build-mode: ${{ matrix.build-mode }} |
| 53 | + queries: ./contrib/codeql/ |
| 54 | + config: | |
| 55 | + disable-default-queries: true |
| 56 | + - if: matrix.build-mode == 'manual' |
| 57 | + shell: bash |
| 58 | + run: | |
| 59 | + make -j fddev |
| 60 | + - name: Perform CodeQL Analysis |
| 61 | + uses: github/codeql-action/analyze@v3 |
| 62 | + with: |
| 63 | + category: "/language:${{matrix.language}}" |
| 64 | + upload: 'always' |
| 65 | + threads: 8 |
| 66 | + |
0 commit comments