Skip to content

Commit ae8178c

Browse files
committed
fix(workflow/linux-musl): enhance linux-musl-gpu vulkan installation with additional dependencies and environment setup
1 parent 402416f commit ae8178c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,17 @@ jobs:
200200
201201
- name: linux-musl install vulkan
202202
if: matrix.name == 'linux-musl-gpu'
203-
run: ${{ matrix.arch == 'arm64' && 'docker exec alpine' || '' }} apk add --no-cache build-base vulkan-loader-dev vulkan-headers shaderc
203+
run: |
204+
${{ matrix.arch == 'arm64' && 'docker exec alpine' || '' }} apk add --no-cache build-base mesa-vulkan-drivers vulkan-loader-dev vulkan-headers shaderc wget
205+
206+
wget https://sdk.lunarg.com/sdk/download/latest/linux/vulkan-sdk.tar.xz -O vulkan-sdk.tar.xz
207+
tar -xf vulkan-sdk.tar.xz
208+
cd $(ls -d 1.* | head -n1)
209+
source setup-env.sh
210+
echo "VULKAN_SDK=$VULKAN_SDK" >> $GITHUB_ENV
211+
echo "PATH=$PATH" >> $GITHUB_ENV
212+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
213+
echo "VK_ADD_LAYER_PATH=$VK_ADD_LAYER_PATH" >> $GITHUB_ENV
204214
205215
- name: cache llama.cpp build
206216
id: cache-llama

0 commit comments

Comments
 (0)