-
Notifications
You must be signed in to change notification settings - Fork 3
148 lines (139 loc) · 5.79 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: CI
on: push
jobs:
build-linux-clang:
name: Linux x64-clang Compile Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Install Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y lsb-release wget software-properties-common apt-utils
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository -y "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main"
sudo apt-get update -y
sudo apt remove build-essential -y
sudo apt-get install cmake clang-14 llvm-14 ninja-build libgl1-mesa-dev libwayland-dev libxkbcommon-dev libasound2-dev libegl-dev libvulkan-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev mesa-common-dev -y --no-install-recommends
- name: Configure
run: |
mkdir -p build
cd build
CC=/usr/bin/clang-14 CXX=/usr/bin/clang++-14 cmake -G "Ninja" ..
- name: Build
run: cd build; cmake --build . --config Release --target ALL_BUILD
build-linux-gcc:
name: Linux x64-gcc Compile Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install cmake g++-11 ninja-build libgl1-mesa-dev libwayland-dev libxkbcommon-dev libasound2-dev libegl-dev libvulkan-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev mesa-common-dev -y --no-install-recommends
- name: Configure
run: |
mkdir -p build
cd build
CC=/usr/bin/gcc-11 CXX=/usr/bin/g++-11 cmake -G "Ninja" ..
- name: Build
run: |
cd build
cmake --build . --config Release --target ALL_BUILD
build-emscripten:
if: ${{ false }} # disable for now, since emscripten is not possible without WebGPU
name: Emscripten-Linux Compile Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install cmake clang python3 libgl1-mesa-dev libwayland-dev libxkbcommon-dev libegl-dev -y --no-install-recommends
- name: Setup Emscripten
run: git clone https://github.com/emscripten-core/emsdk.git --depth=1 && cd emsdk && ./emsdk install latest && ./emsdk activate latest && source ./emsdk_env.sh
- name: Configure
run: mkdir -p build && cd build; cmake -DCMAKE_TOOLCHAIN_FILE=../emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake ..
- name: Build
run: cd build; cmake --build . --config Release --target ALL_BUILD --parallel
build-mac:
name: macOS Compile Check
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Configure
run: mkdir -p build && cd build; cmake -G "Xcode" ..
- name: Build
run: cd build; cmake --build . --config Release --target ALL_BUILD
build-ios:
name: iOS Compile Check
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Configure
run: mkdir -p build && cd build; cmake -G "Xcode" -DCMAKE_TOOLCHAIN_FILE=../.github/workflows/toolchains/ios.toolchain.cmake -DPLATFORM=OS64COMBINED -DENABLE_ARC=OFF -DDEPLOYMENT_TARGET=14.0 ..
- name: Build
run: cd build; cmake --build . --config Release --target ALL_BUILD
build-tvos:
name: tvOS Compile Check
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Configure
run: mkdir -p build && cd build; cmake -G "Xcode" -DCMAKE_TOOLCHAIN_FILE=../.github/workflows/toolchains/ios.toolchain.cmake -DPLATFORM=TVOSCOMBINED -DENABLE_ARC=OFF -DDEPLOYMENT_TARGET=14.0 ..
- name: Build
run: cd build; cmake --build . --config Release --target ALL_BUILD
build-windows:
name: Windows x64 Compile Check
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Configure
run: mkdir build && cd build; cmake -Wno-dev -DRAVENGINE_BUILD_TESTS=ON .. ; cmake ..
- name: Build
run: cd build; cmake --build . --config release --target ALL_BUILD
build-windows-arm:
name: Windows ARM64 Compile Check
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Configure
run: mkdir build && cd build; cmake -Wno-dev -DRAVENGINE_BUILD_TESTS=ON -AARM64 .. ; cmake ..
- name: Build
run: cd build; cmake --build . --config release --target ALL_BUILD
build-UWP:
name: UWP Compile Check
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Configure
run: mkdir build && cd build; cmake -Ax64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0" .. ; cmake .. ;
- name: Build
run: cd build; cmake --build . --config release --target ALL_BUILD