refactor: use api v2 #202
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: clang-tidy-review | |
on: | |
pull_request: | |
paths: | |
- 'src/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
review: | |
runs-on: 'ubuntu-24.04' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up GCC | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: 14 | |
platform: x64 | |
- name: Setup libraries for building Slint | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libfontconfig-dev libfreetype-dev | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: 6.6.2 | |
arch: gcc_64 | |
cache: true | |
cache-key-prefix: ${{ runner.os }}-qt | |
- name: Setup Rust toolchain | |
uses: moonrepo/setup-rust@v1 | |
with: | |
channel: stable | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Cache corrosion | |
uses: actions/cache@v4 | |
with: | |
path: | | |
${{ github.workspace }}/build/_deps | |
${{ github.workspace }}/build/*/cargo/build | |
!${{ github.workspace }}/build/*/cargo/build/**/incremental | |
${{ github.workspace }}/build/corrosion/**/target | |
!${{ github.workspace }}/build/corrosion/**/target/**/incremental | |
key: corrosion-linux-x64 | |
- name: Setup CMake | |
uses: lukka/get-cmake@latest | |
- name: Setup vcpkg | |
uses: lukka/run-vcpkg@v11 | |
with: | |
vcpkgConfigurationJsonGlob: 'vcpkg-configuration.json' | |
vcpkgJsonGlob: 'vcpkg.json' | |
- name: CMake Generate | |
run: cmake --preset native -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
- name: Run clang-tidy | |
uses: ZedThree/[email protected] | |
id: review | |
with: | |
build_dir: build | |
config_file: ".clang-tidy" | |
exclude: "3rdpart/*, build/*" |