Skip to content

Commit da649b3

Browse files
committed
try different compilation options
1 parent f15cfa1 commit da649b3

File tree

1 file changed

+46
-30
lines changed

1 file changed

+46
-30
lines changed

.github/workflows/codeql.yml

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,57 @@ on:
1010
jobs:
1111
analyze:
1212
name: Analyze (${{matrix.language}})
13-
runs-on: 'ubuntu-latest'
13+
runs-on: X64
1414

1515
strategy:
1616
fail-fast: false
1717
matrix:
1818
include:
1919
- language: c-cpp
2020
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++' }}
2130
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+
- uses: dtolnay/[email protected]
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

Comments
 (0)