diff --git a/.github/scripts/macOS/prepare.sh b/.github/scripts/macOS/prepare.sh index c55681539..072170736 100755 --- a/.github/scripts/macOS/prepare.sh +++ b/.github/scripts/macOS/prepare.sh @@ -34,9 +34,11 @@ brew install glm sudo curl -L https://raw.githubusercontent.com/miniupnp/libnatpmp/master/\ natpmp_declspec.h -o /usr/local/include/natpmp_declspec.h # TOREMOVE - missing header in Vulkan v1.3.264 -sudo curl -L https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/main/\ +if [ "$(brew info vulkan-headers | awk 'NR==1{print $4}')" = 1.3.264 ]; then + sudo curl -L https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/main/\ include/vulkan/vulkan_hpp_macros.hpp -o /usr/local/include/vulkan/\ vulkan_hpp_macros.hpp +fi .github/scripts/macOS/install_dylibbundler_v2.sh