This repository was archived by the owner on Jan 19, 2025. It is now read-only.
Loginov Maxim Lab1 Var4 #1538
Workflow file for this run
This file contains hidden or 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: Static analysis | |
on: [pull_request] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install clang-format | |
run: | | |
sudo apt-get install -y clang-format | |
- name: Run clang-format | |
run: | | |
git-clang-format --diff `git merge-base ${GITHUB_SHA} origin/${GITHUB_BASE_REF}` ${GITHUB_SHA} 2>&1 | tee log.txt | |
exit `grep -c diff log.txt` | |
clang-tidy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
key: ${{ github.job }} | |
- uses: ZedThree/clang-tidy-review@v0.14.0 | |
id: review | |
with: | |
build_dir: build | |
cmake_command: cmake -S llvm -B build | |
-DCMAKE_BUILD_TYPE=Release | |
-DLLVM_ENABLE_PROJECTS='clang;mlir' | |
-DLLVM_ENABLE_ASSERTIONS=ON | |
-DCMAKE_C_COMPILER_LAUNCHER=ccache | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
-G Ninja | |
config_file: .clang-tidy | |
apt_packages: build-essential,ninja-build | |
split_workflow: true | |
env: | |
CC: clang-16 | |
CXX: clang++-16 |