-
Notifications
You must be signed in to change notification settings - Fork 23
133 lines (117 loc) · 3.18 KB
/
external.ci.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
## Copyright 2024 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
name: OSPRay Studio CI
on:
push:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-rocky-8:
runs-on: ubuntu-latest
container:
image: rockylinux:8
steps:
- name: Install packages
run: |
echo "Installing build dependencies..."
dnf update -y
dnf install -y git cmake mesa-libGL-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel python3.11-devel
dnf group install -y "Development Tools"
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
run: |
mkdir build
cd build
cmake ..
make -j$(nproc) install
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build-rocky-8
path: build/install
test-rocky-8:
needs: build-rocky-8
runs-on: ubuntu-latest
container:
image: rockylinux:8
steps:
- name: Install packages
run: |
dnf update -y
dnf install -y mesa-libGL mesa-dri-drivers xorg-x11-server-Xvfb
- name: Download build
uses: actions/download-artifact@v4
with:
name: build-rocky-8
- name: Run tests
run: |
chmod +x ./bin/*
set +e
timeout --preserve-status 10s xvfb-run ./bin/ospStudio
exitCode=$?
set -e
if [ "${exitCode}" -eq 143 ]; then
echo "code 143 is SIGTERM, which we expect from terminating the studio GUI"
exitCode=0
fi
echo "Exit code: ${exitCode}"
exit $exitCode
build-ubuntu-2204:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Install packages
run: |
echo "Installing build dependencies..."
apt update
apt upgrade -y
apt install -y build-essential cmake ninja-build libglfw3-dev libgl1-mesa-dev libxinerama-dev libxcursor-dev libxi-dev git python3-dev
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build
run: |
mkdir build
cd build
cmake ..
make -j$(nproc) install
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build-ubuntu-2204
path: build/install
test-ubuntu-2204:
needs: build-ubuntu-2204
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Install packages
run: |
echo "Installing build dependencies..."
apt update
apt upgrade -y
apt install -y libglfw3 xvfb
- name: Download build
uses: actions/download-artifact@v4
with:
name: build-ubuntu-2204
- name: Run tests
run: |
chmod +x ./bin/*
set +e
timeout --preserve-status 10s xvfb-run ./bin/ospStudio
exitCode=$?
set -e
if [ "${exitCode}" -eq 143 ]; then
echo "code 143 is SIGTERM, which we expect from terminating the studio GUI"
exitCode=0
fi
echo "Exit code: ${exitCode}"
exit $exitCode