Share struct headers between GLSL and C++ #202
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: clang-tidy | |
on: | |
pull_request: | |
jobs: | |
clang-tidy-debug: | |
name: clang-tidy (Debug) | |
strategy: | |
fail-fast: true | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get Cmake | |
uses: lukka/get-cmake@latest | |
- name: Get dependencies | |
run: sudo apt update && sudo apt install xorg-dev libxkbcommon-dev clang-tidy-15 | |
- name: Prepare Vulkan SDK | |
uses: humbletim/[email protected] | |
with: | |
vulkan-query-version: 1.3.261.1 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Configure | |
run: cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPROSPER_USE_PCH=OFF | |
- name: Run clang-tidy | |
run: run-clang-tidy-15 -p="build" ".*/prosper/src/.*.cpp" | |
clang-tidy-release: | |
name: clang-tidy (Release) | |
strategy: | |
fail-fast: true | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get Cmake | |
uses: lukka/get-cmake@latest | |
- name: Get dependencies | |
run: sudo apt update && sudo apt install xorg-dev libxkbcommon-dev clang-tidy-15 | |
- name: Prepare Vulkan SDK | |
uses: humbletim/[email protected] | |
with: | |
vulkan-query-version: 1.3.261.1 | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Configure | |
run: cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPROSPER_USE_PCH=OFF | |
- name: Run clang-tidy | |
run: run-clang-tidy-15 -p="build" ".*/prosper/src/.*.cpp" |