Files
mandy/.github/workflows/runtime.yml
2026-11-22 01:01:48 +03:00

54 lines
1.8 KiB
YAML

# Builds the loader (runtime/) with MSVC on every push and pull request, as scripts/build_runtime.ps1 does, so a
# change that breaks the C++ build shows up in CI. Without the Vulkan SDK the GPU test tools are skipped.
name: Runtime
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: runtime-${{ github.ref }}
cancel-in-progress: true
jobs:
windows:
runs-on: windows-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
- name: Configure
run: cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build
run: cmake --build runtime/build
- name: CPU runtime tests
run: ctest --test-dir runtime/build --output-on-failure
linux-gpu-tools:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Vulkan SDK
run: |
sudo apt-get update
sudo apt-get install -y libvulkan-dev cmake ninja-build g++
- name: Configure
run: cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
- name: Build
run: cmake --build runtime/build --parallel
- name: Check GPU tools exist
run: |
for tool in vk_harness vk_pipeline_check vk_command_replay_test vk_compute_test vk_texture_test vk_store_test d3d12_state_map_test command_list_test; do
if [ ! -f "runtime/build/$tool" ] && [ ! -f "runtime/build/$tool.exe" ]; then
echo "Missing: $tool"
exit 1
fi
done
echo "All GPU tools built"