Install native renderer dependencies in CI

This commit is contained in:
Spooks
2026-07-15 13:35:50 -06:00
parent 7a78751953
commit 16d4894aa0

View File

@@ -185,6 +185,31 @@ jobs:
Directory.Packages.props
src/**/packages.lock.json
- name: Install Linux native GPU dependencies
if: matrix.rid == 'linux-x64'
run: |
sudo apt-get update
sudo apt-get install --yes libvulkan-dev pkg-config
"$VCPKG_INSTALLATION_ROOT/vcpkg" install sdl3:x64-linux
cmake \
-S src/SharpEmu.Gpu.Vulkan.Native \
-B artifacts/native/gpu-vulkan \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" \
-DVCPKG_TARGET_TRIPLET=x64-linux \
-DBUILD_TESTING=OFF
- name: Install macOS native GPU dependencies
if: matrix.rid == 'osx-x64'
run: |
brew install sdl3 vulkan-loader vulkan-headers
cmake \
-S src/SharpEmu.Gpu.Vulkan.Native \
-B artifacts/native/gpu-vulkan \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$(brew --prefix)" \
-DBUILD_TESTING=OFF
- name: Restore solution
run: dotnet restore SharpEmu.slnx --locked-mode