Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,24 @@ jobs:
cmake -S . -B build_codeql \
-DCMAKE_TOOLCHAIN_FILE=build_codeql/conan_toolchain.cmake \
-DCMAKE_BUILD_TYPE=Release
cmake --build build_codeql --target c2pool -j$(nproc)
# Cap build parallelism on the shared self-hosted 905 box so the
# CodeQL build does not co-OOM with a concurrent ASan job.
# github-hosted (fork) runs keep full parallelism.
if [ "${{ runner.environment }}" = "github-hosted" ]; then
JOBS=$(nproc)
else
JOBS=8
fi
cmake --build build_codeql --target c2pool -j"$JOBS"

# ── Analysis ──────────────────────────────────────────────────────────
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
# Cap the run-queries footprint on the shared self-hosted 905 box so
# CodeQL does not co-OOM with a concurrent ASan job (was auto-sizing
# to --ram=60466 --threads=32, nearly the whole box). 0 = action
# auto-default, kept for github-hosted (fork) runs.
threads: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && '12' || '0' }}
ram: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && '20000' || '0' }}
Loading