1
+ # # Copyright 2024 Intel Corporation
2
+ # # SPDX-License-Identifier: Apache-2.0
3
+
4
+ name : Linux
5
+
6
+ on :
7
+ push :
8
+ workflow_dispatch :
9
+
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+
14
+ permissions : read-all
15
+
16
+ jobs :
17
+ build-rocky-8 :
18
+ runs-on : ubuntu-latest
19
+ container :
20
+ image : rockylinux:8
21
+
22
+ steps :
23
+ - name : Install packages
24
+ run : |
25
+ echo "Installing build dependencies..."
26
+ dnf install git cmake mesa-libGL-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel -y
27
+ dnf group install "Development Tools" -y
28
+
29
+ - name : Checkout Repository
30
+ uses : actions/checkout@v4
31
+ with :
32
+ submodules : true
33
+
34
+ - name : Build OpenVKL
35
+ run : gitlab/build.sh
36
+
37
+ - name : Upload Artifact
38
+ uses : actions/upload-artifact@v4
39
+ with :
40
+ name : build-rocky-8
41
+ path : build/install
42
+
43
+ test-rocky-8 :
44
+ needs : build-rocky-8
45
+ runs-on : ubuntu-latest
46
+ container :
47
+ image : rockylinux:8
48
+
49
+ steps :
50
+ - name : Install packages
51
+ run : |
52
+ echo "Installing runtime dependencies..."
53
+ dnf install libglvnd-glx libglvnd-opengl -y
54
+
55
+ - name : Download Artifact
56
+ uses : actions/download-artifact@v4
57
+ with :
58
+ name : build-rocky-8
59
+
60
+ - name : Test OpenVKL
61
+ run : |
62
+ # Adding execution bit to binaries is needed since upload/download GHA is using zip compression
63
+ # and it can't preserve files permissions - https://github.com/actions/upload-artifact/issues/38
64
+ chmod +x ./bin/*
65
+
66
+ ./bin/vklTutorialCPU
67
+ ./bin/vklTutorialISPC
68
+ ./bin/vklExamplesCPU -batch -printStats -spp 50 -framebufferSize 1024 1024
69
+ ./bin/vklTestsCPU --durations yes
70
+
71
+
72
+ build-ubuntu-2204 :
73
+ runs-on : ubuntu-latest
74
+ container :
75
+ image : ubuntu:22.04
76
+
77
+ steps :
78
+ - name : Install packages
79
+ run : |
80
+ echo "Installing build dependencies..."
81
+ apt-get update
82
+ apt-get install build-essential cmake ninja-build libglfw3-dev libgl1-mesa-dev git -y
83
+
84
+ - name : Checkout Repository
85
+ uses : actions/checkout@v4
86
+ with :
87
+ submodules : true
88
+
89
+ - name : Build OpenVKL
90
+ run : gitlab/build.sh -G Ninja -D BUILD_GLFW=OFF
91
+
92
+ - name : Upload Artifact
93
+ uses : actions/upload-artifact@v4
94
+ with :
95
+ name : build-ubuntu-2204
96
+ path : build/install
97
+
98
+
99
+ test-ubuntu-2204 :
100
+ needs : build-ubuntu-2204
101
+ runs-on : ubuntu-latest
102
+ container :
103
+ image : ubuntu:22.04
104
+
105
+ steps :
106
+ - name : Install packages
107
+ run : |
108
+ echo "Installing runtime dependencies..."
109
+ apt-get update
110
+ apt-get install libglfw3 libopengl0 -y
111
+
112
+ - name : Download Artifact
113
+ uses : actions/download-artifact@v4
114
+ with :
115
+ name : build-ubuntu-2204
116
+
117
+ - name : Test OpenVKL
118
+ run : |
119
+ # Adding execution bit to binaries is needed since upload/download GHA is using zip compression
120
+ # and it can't preserve files permissions - https://github.com/actions/upload-artifact/issues/38
121
+ chmod +x ./bin/*
122
+
123
+ # LD_LIBRARY_PATH must be set only because of libboost_iostreams.so.1.84.0
124
+ export LD_LIBRARY_PATH=./lib
125
+
126
+ ./bin/vklTutorialCPU
127
+ ./bin/vklTutorialISPC
128
+ ./bin/vklExamplesCPU -batch -printStats -spp 50 -framebufferSize 1024 1024
129
+ ./bin/vklTestsCPU --durations yes
0 commit comments