Archived
1
Fork 0

Install SDL2 through homebrew on macOS CI

This commit is contained in:
Joshua Goins 2022-03-07 09:17:42 -05:00
parent 334f677a86
commit cb3c787db0
2 changed files with 10 additions and 2 deletions

View file

@ -17,6 +17,9 @@ jobs:
triplet: x64-osx
steps:
- uses: actions/checkout@v2
- name: Download SDL2 through Homebrew
if: matrix.os == 'macos-latest'
run: brew install sdl2
- name: Download LunarG key
if: matrix.os == 'ubuntu-latest'
run: wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -

View file

@ -90,8 +90,13 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten")
endif()
if(ENABLE_VULKAN)
find_package(Vulkan REQUIRED)
list(APPEND SHADER_LANGUAGES "spv")
find_package(Vulkan)
if(NOT TARGET Vulkan::Vulkan)
message("Vulkan not found!")
set(ENABLE_VULKAN FALSE)
else()
list(APPEND SHADER_LANGUAGES "spv")
endif()
endif()
if(ENABLE_DX12)