mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-11-24 14:56:40 +00:00
- Cancel superseded PR runs (concurrency), restrict the default token to contents: read, and set timeout-minutes on every job. - Bundle smartmontools 7.5 (was 7.4) in Windows packages. - Add Dependabot updates for GitHub Actions. - Tier 2: build Linux with clang (Ubuntu 24.04 / clang 18, Ubuntu 26.04 / clang 22); re-enable the macOS Apple Clang build and use Homebrew LLVM 20 instead of 17. - Add a clang-tidy workflow (warnings summarized, non-fatal) and an ASan + UBSan workflow that runs the tests. - CodeQL: build manually with the project's CMake configuration instead of autobuild, and drop the template boilerplate. - FreeBSD: pin release 15.1, use LLVM 23 and fix the compiler name (FreeBSD installs clang++NN, not clang++-NN). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
schedule:
|
|
- cron: '24 10 * * 6'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (cpp)
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 45
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libgtkmm-3.0-dev gettext
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: c-cpp
|
|
build-mode: manual
|
|
|
|
# Build the same configuration as the tier 1 Linux CI, including tests and examples.
|
|
- name: Build
|
|
env:
|
|
CC: gcc-14
|
|
CXX: g++-14
|
|
run: |
|
|
cmake -B build -S "$GITHUB_WORKSPACE" \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_TOOLCHAIN_FILE="$GITHUB_WORKSPACE/toolchains/linux-dev.cmake"
|
|
cmake --build build
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
# Keep the category of the previous (autobuild) configuration, so that existing alerts carry over.
|
|
category: "/language:cpp"
|