CXXCBC-638: switch SDK to use bundled fmtlib for spdlog #3137
Workflow file for this run
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
name: linters | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
clang_format: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y wget gnupg2 git | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo bash -c "echo 'deb https://apt.llvm.org/noble/ llvm-toolchain-noble-19 main' >> /etc/apt/sources.list" | |
sudo apt-get update -y | |
sudo apt-get install -y clang-format-19 | |
- name: Run clang-format | |
run: ./bin/check-clang-format | |
env: | |
CB_GIT_CLANG_FORMAT: /usr/bin/git-clang-format-19 | |
CB_CLANG_FORMAT: /usr/bin/clang-format-19 | |
clang_static_analyzer: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libssl-dev cmake curl wget gnupg2 | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo bash -c "echo 'deb https://apt.llvm.org/focal/ llvm-toolchain-focal-11 main' >> /etc/apt/sources.list" | |
sudo apt-get update -y | |
sudo apt-get install -y clang-11 clang-tools-11 | |
- name: Run scan build | |
run: ./bin/check-clang-static-analyzer | |
env: | |
CB_CC: /usr/bin/clang-11 | |
CB_CXX: /usr/bin/clang++-11 | |
CB_SCAN_BUILD: /usr/bin/scan-build-11 | |
- name: Upload scan-build report | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: report | |
path: cmake-build-report.tar.gz | |
cppcheck: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libssl-dev cmake curl wget gnupg2 clang clang-tools cppcheck | |
- name: Run cppcheck | |
run: ./bin/check-cppcheck | |
clang_tidy: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libssl-dev cmake curl wget gnupg2 clang clang-tools clang-tidy | |
- name: Run cppcheck | |
run: ./bin/check-clang-tidy |