4444 apk add \
4545 bash \
4646 cmake \
47- cppunit-dev \
4847 ceph-dev \
4948 curl-dev \
5049 fuse-dev \
6059 make \
6160 openssl \
6261 openssl-dev \
62+ procps \
6363 py3-pip \
6464 py3-setuptools \
6565 py3-wheel \
7272 zlib-dev
7373
7474 - name : Clone repository
75- uses : actions/checkout@v3
75+ uses : actions/checkout@v4
7676 with :
7777 fetch-depth : 0
7878
@@ -96,16 +96,31 @@ jobs:
9696 container : centos:7
9797
9898 env :
99+ ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
100+ ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION : node18
99101 CMAKE_ARGS : " -DCMAKE_INSTALL_PREFIX=/usr;-DCMAKE_INSTALL_RPATH='$ORIGIN/../$LIB'"
100102
101103 steps :
104+ - name : Use CentOS 7 Vault Repository URLs
105+ run : |
106+ sed -i -e '/mirrorlist/d' \
107+ -e 's/# \?baseurl=/baseurl=/g' \
108+ -e 's/mirror.centos.org/vault.centos.org/g' \
109+ -e 's/$releasever/7.9.2009/g' \
110+ /etc/yum.repos.d/*.repo
111+ yum install -y centos-release-scl epel-release
112+ sed -i -e '/mirrorlist/d' \
113+ -e 's/# \?baseurl=/baseurl=/g' \
114+ -e 's/mirror.centos.org/vault.centos.org/g' \
115+ -e 's/$releasever/7.9.2009/g' \
116+ /etc/yum.repos.d/*.repo
117+
102118 - name : Install dependencies
103119 run : |
104- yum install -y centos-release-scl epel-release git
105- yum install -y epel-rpm-macros rpmdevtools sudo yum-utils
120+ yum install -y epel-rpm-macros git rpmdevtools sudo yum-utils
106121
107122 - name : Clone repository
108- uses : actions/checkout@v3
123+ uses : actions/checkout@v1
109124 with :
110125 fetch-depth : 0
111126
@@ -135,7 +150,7 @@ jobs:
135150 dnf config-manager --set-enabled powertools
136151
137152 - name : Clone repository
138- uses : actions/checkout@v3
153+ uses : actions/checkout@v4
139154 with :
140155 fetch-depth : 0
141156
@@ -171,7 +186,43 @@ jobs:
171186 dnf config-manager --set-enabled crb
172187
173188 - name : Clone repository
174- uses : actions/checkout@v3
189+ uses : actions/checkout@v4
190+ with :
191+ fetch-depth : 0
192+
193+ - name : Setup GitHub runner user within container
194+ run : adduser --uid 1001 runner && chown -R runner:runner ${GITHUB_WORKSPACE}
195+
196+ - name : Install XRootD build dependencies
197+ run : dnf builddep -y xrootd.spec
198+
199+ - name : Build and Test with CTest
200+ run : sudo -E -u runner ctest -VV -S test.cmake
201+
202+ - name : Install with CMake
203+ run : cmake --install build
204+
205+ - name : Run post-install tests
206+ run : |
207+ tests/post-install.sh
208+ tests/check-headers.sh
209+
210+ alma10beta :
211+ name : Alma 10 (beta)
212+ runs-on : ubuntu-latest
213+ container : almalinux:10-kitten
214+
215+ env :
216+ CMAKE_ARGS : " -DCMAKE_INSTALL_PREFIX=/usr;-DCMAKE_INSTALL_RPATH='$ORIGIN/../$LIB'"
217+
218+ steps :
219+ - name : Install dependencies
220+ run : |
221+ dnf install -y dnf-plugins-core epel-release git rpmdevtools sudo
222+ dnf config-manager --set-enabled crb
223+
224+ - name : Clone repository
225+ uses : actions/checkout@v4
175226 with :
176227 fetch-depth : 0
177228
@@ -206,7 +257,7 @@ jobs:
206257 run : dnf install -y dnf-plugins-core git ninja-build rpmdevtools
207258
208259 - name : Clone repository
209- uses : actions/checkout@v3
260+ uses : actions/checkout@v4
210261 with :
211262 fetch-depth : 0
212263
@@ -241,43 +292,19 @@ jobs:
241292 CMAKE_ARGS : ' -DINSTALL_PYTHON_BINDINGS=0;-DUSE_SYSTEM_ISAL=1;-DCMAKE_INSTALL_PREFIX=/usr'
242293
243294 steps :
244- - name : Install dependencies
295+ - name : Install development tools
245296 run : |
246- sudo apt update -q
247- sudo apt install -y \
248- cmake \
249- clang \
250- davix-dev \
251- g++ \
252- libcppunit-dev \
253- libcurl4-openssl-dev \
254- libfuse-dev \
255- libgtest-dev \
256- libisal-dev \
257- libjson-c-dev \
258- libkrb5-dev \
259- libmacaroons-dev \
260- libreadline-dev \
261- libscitokens-dev \
262- libssl-dev \
263- libsystemd-dev \
264- libtinyxml-dev \
265- libxml2-dev \
266- make \
267- pkg-config \
268- python3-dev \
269- python3-pip \
270- python3-setuptools \
271- python3-wheel \
272- uuid-dev \
273- voms-dev \
274- zlib1g-dev
297+ sudo apt update -qq
298+ sudo apt install -y build-essential devscripts equivs git
275299
276300 - name : Clone repository
277- uses : actions/checkout@v3
301+ uses : actions/checkout@v4
278302 with :
279303 fetch-depth : 0
280304
305+ - name : Install XRootD build dependencies
306+ run : mk-build-deps --install --remove -s sudo debian/control <<< yes
307+
281308 - name : Build and Test with CTest
282309 run : env CC=${CC} CXX=${CC/g*/g++} ctest -VV -S test.cmake
283310
@@ -297,7 +324,7 @@ jobs:
297324
298325 macos :
299326 name : macOS
300- runs-on : macos-latest
327+ runs-on : macos-13
301328
302329 env :
303330 CC : clang
@@ -310,13 +337,10 @@ jobs:
310337 run : sudo sed -i -e "s/localhost/localhost $(hostname)/g" /etc/hosts
311338
312339 - name : Install dependencies with Homebrew
313- run : brew install cppunit davix googletest isa-l
314-
315- - name : Install Python dependencies with pip
316- run : python3 -m pip install --upgrade pip setuptools wheel
340+ run : brew install davix googletest python-setuptools
317341
318342 - name : Clone repository
319- uses : actions/checkout@v3
343+ uses : actions/checkout@v4
320344 with :
321345 fetch-depth : 0
322346
0 commit comments