-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 865 Bytes
/
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
name: Build BLOKE Game Engine
on:
push:
branches:
- default
pull_request:
branches:
- default
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y libuv1-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libenet-dev libsdl2-mixer-dev libcurl4-openssl-dev cmake make build-essential
- name: Build BLOKE Game Engine
run: |
git submodule update --init
cmake -S . -B build
cmake --build build
- name: Build BLOKE Game Engine for Web
run: |
git submodule update --init
cmake -S . -B build -DNET_PROTOCOL=WEBSOCKETS
cmake --build build
emcmake cmake -B build-web
cmake --build build-web