Repository navigation
49 lines (41 loc) · 1.55 KB
/
Copy pathvulkan_checks.yml
File metadata and controls
49 lines (41 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: dasVulkan checks
# Per-PR gate for dasVulkan changes, paths-filtered so PRs that never touch the
# module pay nothing. Carries the two cheap correctness gates: the generator
# skip-ratchet (an emitter change must not silently shrink the bound surface)
# and the module-wide lint. The full render suite is nightly_vulkan.yml.
on:
pull_request:
paths:
- 'modules/dasVulkan/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ratchet_and_lint:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install CMake and Ninja"
uses: lukka/get-cmake@latest
- name: "Set up sccache"
uses: mozilla-actions/sccache-action@v0.0.9
- name: "Configure"
# dasModulePUGIXML feeds the generator (vk.xml); dasModuleVulkan at
# --parallel 2 — the ~55 generated template-heavy TUs OOM a 7 GB runner
# at full parallelism. No lavapipe here: nothing in this job renders.
run: |
set -eux
cmake --no-warn-unused-cli -B./build \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DDAS_HV_DISABLED=ON \
-DDAS_LLVM_DISABLED=ON \
-DDAS_GLFW_DISABLED=ON \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
-DDAS_VULKAN_COMPILE_JOBS=2 \
-G Ninja
- name: "Regenerate and lint dasVulkan"
run: cmake --build ./build --target check_vulkan