Introduce Level 0 vk-bench micro-benchmark: headless mode, GPU timestamps, container & scripts #10
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: ci | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build-and-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake g++ libvulkan-dev clang-format curl ca-certificates | |
| - name: Install slangc | |
| run: | | |
| SLANG_VERSION=2024.17.2 | |
| curl -fsSL -o slang.tar.gz https://github.com/shader-slang/slang/releases/download/v${SLANG_VERSION}/slang-${SLANG_VERSION}-linux-x86_64.tar.gz | |
| tar -xzf slang.tar.gz | |
| sudo install -m 0755 slang-${SLANG_VERSION}/bin/slangc /usr/local/bin/slangc | |
| - name: Build | |
| run: | | |
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build -j"$(nproc)" | |
| - name: Format check | |
| run: | | |
| clang-format --dry-run --Werror src/main.cpp | |
| benchmark-gpu: | |
| if: ${{ false }} | |
| runs-on: [self-hosted, gpu] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Placeholder | |
| run: echo "Enable on GPU runner when available" |