-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,41 +10,55 @@ on: | |
jobs: | ||
analyze: | ||
name: Analyze (${{matrix.language}}) | ||
runs-on: 'ubuntu-latest' | ||
runs-on: X64 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- language: c-cpp | ||
build-mode: manual | ||
compiler: clang | ||
machine: linux_clang_x86_64 | ||
compiler-version: 15.0.6 | ||
extras: rpath no-agave | ||
env: | ||
MACHINE: ${{ matrix.machine }} | ||
EXTRAS: ${{ matrix.extras || '' }} | ||
CC: ${{ matrix.compiler }} | ||
CXX: ${{ matrix.compiler == 'gcc' && 'g++' || 'clang++' }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install system dependencies | ||
shell: bash | ||
run: | | ||
sudo apt-get install -y gettext autopoint gcc-multilib protobuf-compiler llvm lcov libudev-dev cmake libclang-dev | ||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
echo "y" | ./deps.sh | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
queries: ./contrib/codeql/ | ||
config: | | ||
disable-default-queries: true | ||
- if: matrix.build-mode == 'manual' | ||
shell: bash | ||
run: | | ||
MACHINE=linux_clang_noarch64 make -j unit-test | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" | ||
upload: 'always' | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: ./.github/actions/deps | ||
with: | ||
compiler: ${{ matrix.compiler }} | ||
compiler-version: ${{ matrix.compiler-version }} | ||
- uses: dtolnay/[email protected] | ||
- name: clean targets | ||
run: | | ||
make clean --silent >/dev/null | ||
- uses: ./.github/actions/submodule | ||
with: | ||
machine: ${{ matrix.machine }} | ||
compiler: ${{ matrix.compiler }} | ||
compiler-version: ${{ matrix.compiler-version }} | ||
if: ${{ contains(matrix.targets, 'fdctl') && !contains(matrix.extras, 'no-agave') }} | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
queries: ./contrib/codeql/ | ||
config: | | ||
disable-default-queries: true | ||
- if: matrix.build-mode == 'manual' | ||
shell: bash | ||
run: | | ||
make -j fddev | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" | ||
upload: 'always' |