-
Notifications
You must be signed in to change notification settings - Fork 1
147 lines (139 loc) · 5.23 KB
/
linux-arm-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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: Linux on ARM (OpenGL)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
# Run steps for both armv6 and aarch64
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu20.04
- arch: armv7
distro: ubuntu20.04
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2.0.9
name: Run Tests in ${{ matrix.distro }} ${{ matrix.arch }}
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
# Not required, but speeds up builds
githubToken: ${{ github.token }}
# The shell to run commands with in the container
shell: /bin/bash
# Install some dependencies in the container. This speeds up builds if
# you are also using githubToken. Any dependencies installed here will
# be part of the container image that gets cached, so subsequent
# builds don't have to re-install them. The image layer is cached
# publicly in your project's package repository, so it is vital that
# no secrets are present in the container state or logs.
install: |
apt-get update -y -q
apt-get upgrade -y -q
apt-get install -y -q libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev libudev-dev git build-essential imagemagick xvfb libwayland-dev wayland-protocols libxkbcommon-dev ninja-build
# Produce a binary artifact and place it in the mounted volume
run: |
echo " * Make Git happy"
git config --global --add safe.directory /home/runner/work/Kinc-Samples/Kinc-Samples
git config --global --add safe.directory /home/runner/work/Kinc-Samples/Kinc-Samples/Kinc
git config --global --add safe.directory /home/runner/work/Kinc-Samples/Kinc-Samples/Kinc/Tools/linux_arm
git config --global --add safe.directory /home/runner/work/Kinc-Samples/Kinc-Samples/Kinc/Tools/linux_arm64
echo " * Get Submodules"
./get_dlc
echo " * Compile Shader"
cd Shader
../Kinc/make -g opengl --compile
cd ..
echo " * Compile Texture"
cd Texture
../Kinc/make -g opengl --compile
cd ..
echo " * Compile MultiWindow"
cd MultiWindow
../Kinc/make -g opengl --compile
cd ..
echo " * Compile ComputeShader"
cd ComputeShader
../Kinc/make -g opengl --compile
cd ..
echo " * Compile TextureArray"
cd TextureArray
../Kinc/make -g opengl --compile
cd ..
echo " * Compile ShaderG5"
cd ShaderG5
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 00_empty"
cd 00_empty
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 01_triangle"
cd 01_triangle
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 02_matrix"
cd 02_matrix
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 03_colored_cube"
cd 03_colored_cube
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 04_textured_cube"
cd 04_textured_cube
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 05_camera_controls"
cd 05_camera_controls
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 06_render_targets"
cd 06_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 07_multiple_render_targets"
cd 07_multiple_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 08_float_render_targets"
cd 08_float_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 09_depth_render_targets"
cd 09_depth_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 10_cubemap"
cd 10_cubemap
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 11_instanced_rendering"
cd 11_instanced_rendering
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 12_set_render_target_depth"
cd 12_set_render_target_depth
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 13_generate_mipmaps"
cd 13_generate_mipmaps
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 14_set_mipmap"
cd 14_set_mipmap
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 15_deinterleaved_buffers"
cd 15_deinterleaved_buffers
../Kinc/make -g opengl --compile
cd ..