-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 1.92 KB
/
linux-smoke-tests.yml
File metadata and controls
63 lines (55 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Linux Smoke Tests
on:
push:
branches: [main, master]
paths-ignore:
- 'scripts/**'
- '**.md'
- 'LICENSE'
- '.gitignore'
- '.github/workflows/release.yml'
pull_request:
paths-ignore:
- 'scripts/**'
- '**.md'
- 'LICENSE'
- '.gitignore'
- '.github/workflows/release.yml'
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 6
env:
# Force CPU Vulkan ICD (lavapipe) so the smoke test runs without a GPU
VK_ICD_FILENAMES: /usr/share/vulkan/icd.d/lvp_icd.x86_64.json
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential cmake ninja-build \
libgtest-dev libspdlog-dev \
libglfw3 libglfw3-dev libvulkan-dev \
glslang-tools glslang-dev libglm-dev \
mesa-vulkan-drivers xvfb pkg-config \
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON -G Ninja .
- name: Build
run: cmake --build build
- name: GTEST (Includes Validating Frame Dumps)
run: |
xvfb-run -s "-screen 0 1024x768x24" \
env VSDF_SMOKE_TESTS=1 build/tests/vsdf_tests
- name: Vulkan single frame smoke test (CPU driver via lavapipe + fake display)
run: |
# xvfb provides the display for GLFW; lavapipe provides the Vulkan ICD
xvfb-run -s "-screen 0 1024x768x24" \
./build/vsdf --toy shaders/testtoyshader.frag --frames 1 --headless --log-level debug
- name: Vulkan 100 frame smoke test
run: |
xvfb-run -s "-screen 0 1024x768x24" \
./build/vsdf --toy shaders/testtoyshader.frag --frames 100 --headless --log-level info