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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
name: nx-libs CI
on:
push:
branches: [ 3.6.x ]
pull_request:
branches: [ 3.6.x ]
jobs:
build:
name: Build on ${{ matrix.cfg.container }} - ${{ matrix.cfg.cc-version }}
runs-on: ubuntu-20.04
container: ${{ matrix.cfg.container }}
strategy:
fail-fast: false
matrix:
cfg:
- { container: 'ubuntu:16.04', cc-version: gcc }
- { container: 'ubuntu:16.04', cc-version: clang }
- { container: 'ubuntu:20.04', cc-version: gcc }
- { container: 'ubuntu:20.04', cc-version: clang }
- { container: 'ubuntu:22.04', cc-version: gcc }
- { container: 'ubuntu:22.04', cc-version: clang }
- { container: 'debian:stable', cc-version: gcc }
- { container: 'debian:stable', cc-version: clang }
- { container: 'debian:sid', cc-version: gcc }
- { container: 'debian:sid', cc-version: clang }
- { container: 'quay.io/centos/centos:7', cc-version: gcc }
- { container: 'quay.io/centos/centos:7', cc-version: clang }
- { container: 'quay.io/centos/centos:stream8', cc-version: gcc }
- { container: 'quay.io/centos/centos:stream8', cc-version: clang }
- { container: 'quay.io/centos/centos:stream9', cc-version: gcc }
- { container: 'quay.io/centos/centos:stream9', cc-version: clang }
- { container: 'fedora:latest', cc-version: gcc }
- { container: 'fedora:latest', cc-version: clang }
steps:
- name: Install compiler ${{ matrix.cfg.cc-version }}
shell: sh
env:
DEBIAN_FRONTEND: noninteractive
run: |
case "${{ matrix.cfg.container }}" in
ubuntu*|debian*)
cat /etc/debian_version
apt-get update -q -y
apt-get install -q -y ${{ matrix.cfg.cc-version }}
${{ matrix.cfg.cc-version }} --version
case "${{ matrix.cfg.cc-version }}" in
gcc)
apt-get install -q -y g++
;;
clang)
apt-get install -q -y build-essential
esac
;;
fedora*)
cat /etc/fedora-release
dnf -y update
dnf -y install ${{ matrix.cfg.cc-version }}
${{ matrix.cfg.cc-version }} --version
;;
*/centos:7)
cat /etc/centos-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum -y update
yum -y install ${{ matrix.cfg.cc-version }}
${{ matrix.cfg.cc-version }} --version
;;
*/centos:stream8)
cat /etc/centos-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
dnf -y update --nobest --allowerasing
dnf -y install ${{ matrix.cfg.cc-version }}
${{ matrix.cfg.cc-version }} --version
;;
*/centos:stream9)
cat /etc/centos-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
dnf -y update
dnf -y install ${{ matrix.cfg.cc-version }}
${{ matrix.cfg.cc-version }} --version
;;
esac
- name: Install nx-libs dependencies ${{ matrix.cfg.cc-version }}
shell: sh
env:
DEBIAN_FRONTEND: noninteractive
run: |
case "${{ matrix.cfg.container }}" in
ubuntu*|debian*)
# basic packages
apt-get install -q -y \
autoconf libtool make pkg-config
# imake deps
apt-get install -q -y \
libxkbfile-dev xfonts-utils xutils-dev
# X11 libraries deps
apt-get install -q -y \
libpixman-1-dev libjpeg-dev libxcomposite-dev libxdamage-dev \
libxml2-dev libxfont-dev libxinerama-dev libxpm-dev libxrandr-dev \
libxtst-dev x11proto-fonts-dev libtirpc-dev
# soft requirements
apt-get install -q -y \
quilt x11-xkb-utils
;;
fedora*)
# basic packages
dnf -y install \
autoconf automake gcc-c++ libtool make imake pkgconfig which
# imake deps
dnf -y install \
xorg-x11-proto-devel zlib-devel
# X11 libraries deps
dnf -y install \
libjpeg-devel expat-devel libpng-devel libxml2-devel pixman-devel \
libX11-devel libXext-devel libXpm-devel libXfont2-devel \
libXdmcp-devel libXdamage-devel libXcomposite-devel \
libXrandr-devel libXfixes-devel libXtst-devel libXinerama-devel \
xorg-x11-font-utils libtirpc-devel xkeyboard-config
# soft requirements
dnf -y install \
quilt xkbcomp-devel
;;
*/centos:7)
# enable epel repository for quilt
yum -y install epel-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
# basic packages
yum -y install \
autoconf automake gcc-c++ libtool make imake pkgconfig which
# imake deps
yum -y install \
xorg-x11-proto-devel zlib-devel
# X11 libraries deps
yum -y install \
libjpeg-devel expat-devel libpng-devel libxml2-devel pixman-devel \
libX11-devel libXext-devel libXpm-devel libXfont-devel \
libXdmcp-devel libXdamage-devel libXcomposite-devel \
libXrandr-devel libXfixes-devel libXtst-devel libXinerama-devel \
xorg-x11-font-utils libtirpc-devel xkeyboard-config
# soft requirements
yum -y --enablerepo=epel install \
quilt xorg-x11-xkb-utils-devel
;;
*/centos:stream8)
# Enable powertools repository for imake
dnf -y install dnf-plugins-core epel-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
dnf config-manager --set-enabled powertools
# basic packages
dnf -y install \
autoconf automake gcc-c++ libtool make imake pkgconfig which
# imake deps
dnf -y install \
xorg-x11-proto-devel zlib-devel
# X11 libraries deps
dnf -y install \
libjpeg-devel expat-devel libpng-devel libxml2-devel pixman-devel \
libX11-devel libXext-devel libXpm-devel libXfont2-devel \
libXdmcp-devel libXdamage-devel libXcomposite-devel \
libXrandr-devel libXfixes-devel libXtst-devel libXinerama-devel \
xorg-x11-font-utils libtirpc-devel xkeyboard-config
# soft requirements
dnf --enablerepo="epel" -y install \
quilt xorg-x11-xkb-utils-devel
;;
*/centos:stream9)
dnf -y install dnf-plugins-core epel-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
# CodeReady Linux Builder, replacement for PowerTools
dnf config-manager --set-enabled crb
# basic packages
dnf -y install \
autoconf automake gcc-c++ libtool make imake pkgconfig which
# imake deps
dnf -y install \
xorg-x11-proto-devel zlib-devel
# X11 libraries deps
dnf -y install \
libjpeg-devel expat-devel libpng-devel libxml2-devel pixman-devel \
libX11-devel libXext-devel libXpm-devel libXfont2-devel \
libXdmcp-devel libXdamage-devel libXcomposite-devel \
libXrandr-devel libXfixes-devel libXtst-devel libXinerama-devel \
libtirpc-devel mkfontscale xkeyboard-config
# soft requirements
dnf -y install \
quilt setxkbmap xkbcomp
;;
esac
- name: Checkout repository
uses: actions/checkout@v2
- name: Build nx-libs with ${{ matrix.cfg.cc-version }}
shell: sh
env:
DEBIAN_FRONTEND: noninteractive
run: |
case "${{ matrix.cfg.cc-version }}" in
gcc)
export CC=gcc
export CXX=g++
;;
clang)
export CC=clang
export CXX=clang++
;;
esac
case "${{ matrix.cfg.container }}" in
fedora*|*/centos*|debian*|ubuntu*)
export IMAKE_DEFINES="-DUseTIRPC=YES"
make VERBOSE=1 IMAKE_DEFINES="${IMAKE_DEFINES}"
;;
esac
|