-
Notifications
You must be signed in to change notification settings - Fork 30
32 lines (29 loc) · 969 Bytes
/
web-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
name: Web
on:
push:
branches:
- master
jobs:
build-linux:
name: build-web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: run
run: |
sudo apt-get install xorg-dev libglu1-mesa-dev libx11-dev libxss-dev libxxf86vm-dev libxkbfile-dev libxv-dev
git submodule init
git submodule update
cd thirdparty/glew
make extensions
cd ../..
curl -L https://github.com/emscripten-core/emsdk/archive/refs/tags/3.1.15.zip > emsdk.zip
unzip emsdk.zip ; mv emsdk-* emsdk ; cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
export EMDSDK="$PWD"
cd ..
mkdir build
source "${EMSDK}/emsdk_env.sh"
cmake -DCMAKE_TOOLCHAIN_FILE="${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" -DWEBGL_BUILD=ON -S . -B build