-
Notifications
You must be signed in to change notification settings - Fork 6
118 lines (113 loc) · 3.59 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
name: CI
on: push
jobs:
build-windows:
name: Windows Compile Check
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [x64, ARM64]
sys: [Windows, WindowsStore]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -A${{ matrix.arch }} -DCMAKE_SYSTEM_NAME=${{ matrix.sys }} -DCMAKE_SYSTEM_VERSION="10.0" -DRGL_RUNTIME_COMPILATION=ON ..
- name: Build
run: |
cd build
cmake --build . --config release --target RGL rglc
build-linux:
name: Linux Compile Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo apt update
sudo apt install cmake make clang ninja-build vulkan-sdk libx11-dev libx11-xcb-dev libxtst-dev xcb libxcb-xkb-dev x11-xkb-utils libxkbcommon-x11-dev --no-install-recommends -y
- name: Configure
run: |
mkdir build
cd build
CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -G "Ninja" -DRGL_RUNTIME_COMPILATION=ON ..
- name: Build
run: |
cd build
cmake --build . --config release --target RGL rglc --parallel
build-mac:
name: macOS Compile Check
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -G "Xcode" -DRGL_RUNTIME_COMPILATION=ON ..
- name: Build
run: |
cd build
cmake --build . --config Release --target RGL rglc -- -quiet
build-apple-mobile:
name: Apple Mobile Compile Check
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
tplatform: [iOS, tvOS]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -G "Xcode" -DCMAKE_SYSTEM_NAME="${{ matrix.tplatform }}" -DRGL_RUNTIME_COMPILATION=ON -DCMAKE_XCODE_CODE_SIGNING_ALLOWED=NO -DCMAKE_XCODE_CODE_SIGNING_ENABLED=NO ..
- name: Build
run: |
cd build
cmake --build . --config Release --target RGL -- -quiet
build-web:
name: Web Compile Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt update
sudo apt install ninja-build
- name: Get Emscripten
run: |
git clone https://github.com/emscripten-core/emsdk.git --depth=1
cd emsdk
./emsdk install tot
./emsdk activate tot
- name: Build for web
run: |
source emsdk/emsdk_env.sh
mkdir build
cd build
emcmake cmake -G Ninja -DRGL_RUNTIME_COMPILATION=ON -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target RGL --parallel