Skip to content

Commit 51042a0

Browse files
committed
Fix macos builds
1 parent 594296e commit 51042a0

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env sh
2+
3+
set -euo pipefail
4+
IFS=$'\n\t'
5+
6+
# Download and install the Vulkan SDK.
7+
curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.dmg" -o /tmp/vulkan-sdk.dmg
8+
hdiutil attach /tmp/vulkan-sdk.dmg -mountpoint /Volumes/vulkan-sdk
9+
/Volumes/vulkan-sdk/InstallVulkan.app/Contents/MacOS/InstallVulkan \
10+
--accept-licenses --default-answer --confirm-command install
11+
12+
cnt=5
13+
until hdiutil detach -force /Volumes/vulkan-sdk
14+
do
15+
[[ cnt -eq "0" ]] && break
16+
sleep 1
17+
((cnt--))
18+
done
19+
20+
rm -f /tmp/vulkan-sdk.dmg
21+
22+
echo 'Vulkan SDK installed successfully! You can now build Godot by running "scons".'

.github/workflows/macos_builds_deployment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ jobs:
6565
uses: ./godot-engine/.github/actions/godot-deps
6666
- name: Setup Vulkan SDK
6767
run: |
68-
sh ./godot-engine/misc/scripts/install_vulkan_sdk_macos.sh
68+
chmod +x ./.github/workflows/install_vulkan_sdk_macos.sh
69+
./.github/workflows/install_vulkan_sdk_macos.sh
6970
- name: Setup Godot build cache
7071
uses: ./godot-engine/.github/actions/godot-cache
7172
with:

0 commit comments

Comments
 (0)