-
-
Notifications
You must be signed in to change notification settings - Fork 119
45 lines (41 loc) · 1.4 KB
/
linux-opengl.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
name: Linux (OpenGL)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apt Update
run: sudo apt update
- name: Apt Install
run: sudo apt-get install libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev libudev-dev libwayland-dev wayland-protocols libxkbcommon-dev ninja-build --yes --quiet
- name: Get Submodules
run: ./get_dlc
- name: Compile
run: ./make -g opengl --kinc . --from Tests/Empty --compile
- name: Clean
run: rm -r build
- name: Get ImageMagick and xvfb
run: sudo apt install imagemagick xvfb
- name: Compile Test 1
run: ./make -g opengl --kinc . --from Tests/Shader --compile
- name: Copy Test 1
run: cp build/Release/ShaderTest Tests/Shader/Deployment/ShaderTest
- name: Run Test 1
working-directory: ./Tests/Shader/Deployment
run: xvfb-run ./ShaderTest
- name: Check Test 1
run: compare-im6 -metric mae Tests/Shader/reference.png Tests/Shader/Deployment/test.png difference.png
- name: Compile Test 2 (SIMD)
run: ./make -g opengl --kinc . --from Tests/SIMD --compile
- name: Copy Test 2
run: cp build/Release/SIMD Tests/SIMD/Deployment/SIMD
- name: Run Test 2
working-directory: ./Tests/SIMD/Deployment
run: ./SIMD