-
Notifications
You must be signed in to change notification settings - Fork 2.1k
92 lines (81 loc) · 2.45 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Build Project
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_ubuntu_x11:
name: Build Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Install Vulkan libraries
run: |
sudo apt update
sudo apt install libvulkan-dev
- name: Build
run: |
cmake .
make
build_windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Build
env:
TARGET_PLATFORM: windows
run: |
cmake .
cmake --build .
build_macOS:
name: Build macOS
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Setup
run: |
curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip
unzip /tmp/vulkan-sdk.zip -d /tmp
/tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan \
--root ~/VulkanSDK/latest --accept-licenses --default-answer --confirm-command install
cd ~/VulkanSDK/latest
sudo ./install_vulkan.py
brew install libomp
- name: Build
run: |
export LIBOMP_PREFIX=$(brew --prefix libomp)
cmake -G "Xcode" -DOpenMP_omp_LIBRARY=$LIBOMP_PREFIX/lib/libomp.dylib .
cmake --build .
# build_iOS:
# name: Build iOS
# runs-on: macos-13
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: "recursive"
# - name: Setup
# run: |
# curl -L "https://sdk.lunarg.com/sdk/download/latest/mac/vulkan-sdk.zip" -o /tmp/vulkan-sdk.zip
# unzip /tmp/vulkan-sdk.zip -d /tmp
# /tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan \
# --root ~/VulkanSDK/latest --accept-licenses --default-answer --confirm-command install
# cd ~/VulkanSDK/latest
# sudo ./install_vulkan.py
# - name: Build
# run: |
# cd apple
# rm MoltenVK.xcframework
# ln -s ~/VulkanSDK/latest/macOS/lib/MoltenVK.xcframework
# xcodebuild -scheme examples-ios build CODE_SIGNING_ALLOWED=NO
# xcodebuild -scheme examples-macos build