-
Notifications
You must be signed in to change notification settings - Fork 30
42 lines (40 loc) · 1.05 KB
/
ubuntu-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
name: Linux
on:
push:
branches:
- '*'
jobs:
build-linux:
name: build-linux
runs-on: ubuntu-latest
steps:
- name: setup
run: |
sudo apt-get update
sudo apt-get install -y mesa-utils xvfb xorg-dev libglu1-mesa-dev glslang-dev glslang-tools
#xvfb-run glxinfo
- uses: actions/checkout@v3
- name: set up engine dependencies
run: |
git submodule init
git submodule update
#cd thirdparty/glew
#make extensions
- name: build
run: |
mkdir build
cmake -DBUILD_SAMPLES=OFF -DBUILD_TESTS=ON -DOPENGL_SHADER_OUTPUT=ON -S . -B build
cd build
make
- name: test
continue-on-error: true
run: |
cd build/tests
mkdir glslang
xvfb-run -a -e errors ./limitless-tests
cat errors
- name: shader glslang validation
run: |
cd build/tests
cd glslang
for file in ./*; do glslangValidator -C "$file"; done