Skip to content

Commit 892e565

Browse files
author
Iswarya Alex
committed
vulkan build
1 parent 9400cff commit 892e565

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/linux-vulkan-build.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,29 @@ jobs:
3434
- name: Checkout code
3535
uses: actions/checkout@v4
3636

37-
- name: Install Vulkan and build dependencies
37+
- name: Check Vulkan readiness
3838
run: |
39-
echo "Installing Vulkan and build dependencies..."
40-
sudo apt-get update
41-
sudo apt-get install -y \
42-
build-essential \
43-
cmake \
44-
git \
45-
libsdl2-dev \
46-
pkg-config \
47-
vulkan-tools \
48-
libvulkan-dev \
49-
vulkan-validationlayers \
50-
spirv-tools \
51-
mesa-vulkan-drivers \
52-
glslc
39+
echo "Checking Vulkan readiness..."
40+
if ! command -v vulkaninfo >/dev/null 2>&1; then
41+
echo "ERROR: vulkaninfo is not available on this runner."
42+
exit 1
43+
fi
44+
45+
vulkaninfo | grep "GPU id"
46+
if [ $? -ne 0 ]; then
47+
echo "ERROR: Vulkan check failed. 'vulkaninfo | grep \"GPU id\"' returned no result."
48+
exit 1
49+
fi
5350
5451
# Some Ubuntu images may provide glslc through shaderc instead of glslc package.
5552
if ! command -v glslc >/dev/null 2>&1; then
5653
echo "glslc not found after install, trying shaderc..."
5754
sudo apt-get install -y shaderc
5855
fi
5956
60-
echo "Dependencies installed"
57+
echo "Vulkan is ready"
6158
cmake --version
6259
gcc --version
63-
vulkaninfo --summary || true
6460
6561
- name: Configure CMake (Vulkan)
6662
run: |

0 commit comments

Comments
 (0)