Skip to content

Commit 4682258

Browse files
update workflow
1 parent 7e373de commit 4682258

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/cmake.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Install dependencies
18-
run: sudo apt-get update && sudo apt-get install -y cmake clang
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y cmake clang libpng-dev libx11-dev
1921
2022
- name: Cache CMake build
2123
uses: actions/cache@v4
@@ -24,15 +26,21 @@ jobs:
2426
key: build-cache-${{ runner.os }}-${{ hashFiles('**/CMakeLists.txt', '**/*.cpp', '**/*.h') }}
2527
restore-keys: |
2628
build-cache-${{ runner.os }}-
27-
- name: Install libpng
28-
run: sudo apt-get install -y libpng-dev
29+
2930
- name: Prepare Vulkan SDK
3031
uses: humbletim/setup-vulkan-sdk@v1.2.1
3132
with:
3233
vulkan-query-version: 1.4.304.1
3334
vulkan-components: Vulkan-Headers, Vulkan-Loader
3435
vulkan-use-cache: true
3536

37+
- name: Export Vulkan environment variables
38+
run: |
39+
echo "VULKAN_SDK=${{ github.workspace }}/VULKAN_SDK" >> $GITHUB_ENV
40+
echo "${{ github.workspace }}/VULKAN_SDK/bin" >> $GITHUB_PATH
41+
echo "LD_LIBRARY_PATH=${{ github.workspace }}/VULKAN_SDK/lib" >> $GITHUB_ENV
42+
echo "CMAKE_PREFIX_PATH=${{ github.workspace }}/VULKAN_SDK" >> $GITHUB_ENV
43+
3644
- name: Configure CMake
3745
run: cmake -S . -B build
3846

0 commit comments

Comments
 (0)