Skip to content

Commit

Permalink
try different compilation options
Browse files Browse the repository at this point in the history
  • Loading branch information
two-heart committed Nov 25, 2024
1 parent f15cfa1 commit 87ae49b
Showing 1 changed file with 44 additions and 30 deletions.
74 changes: 44 additions & 30 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 87ae49b

Please sign in to comment.