-
Notifications
You must be signed in to change notification settings - Fork 39
186 lines (180 loc) · 7.06 KB
/
nx-libs.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
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
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-22.04
container: ${{ matrix.cfg.container }}
strategy:
fail-fast: false
matrix:
cfg:
- { 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: 'ubuntu:24.04', cc-version: gcc }
- { container: 'ubuntu:24.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/rockylinux/rockylinux:8', cc-version: gcc }
- { container: 'quay.io/rockylinux/rockylinux:8', 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
;;
*/rockylinux:8)
cat /etc/rocky-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
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
;;
*/rockylinux:8)
# 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@v4
- 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*|rockylinux*|debian*|ubuntu*)
export IMAKE_DEFINES="-DUseTIRPC=YES"
make VERBOSE=1 IMAKE_DEFINES="${IMAKE_DEFINES}"
;;
esac