Install SDL2 through homebrew on macOS CI
This commit is contained in:
parent
334f677a86
commit
cb3c787db0
2 changed files with 10 additions and 2 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -17,6 +17,9 @@ jobs:
|
||||||
triplet: x64-osx
|
triplet: x64-osx
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Download SDL2 through Homebrew
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
run: brew install sdl2
|
||||||
- name: Download LunarG key
|
- name: Download LunarG key
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
|
run: wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
|
||||||
|
|
|
@ -90,8 +90,13 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_VULKAN)
|
if(ENABLE_VULKAN)
|
||||||
find_package(Vulkan REQUIRED)
|
find_package(Vulkan)
|
||||||
|
if(NOT TARGET Vulkan::Vulkan)
|
||||||
|
message("Vulkan not found!")
|
||||||
|
set(ENABLE_VULKAN FALSE)
|
||||||
|
else()
|
||||||
list(APPEND SHADER_LANGUAGES "spv")
|
list(APPEND SHADER_LANGUAGES "spv")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_DX12)
|
if(ENABLE_DX12)
|
||||||
|
|
Reference in a new issue