Skip to content

Commit 9e70bcf

Browse files
authored
Merge pull request gridcf#241 from fscheiner/[...]: CI improvements
## Enable CI builds for *10 distros and also on arm64 runners ## * Enable CI builds for CentOS Stream/Rocky Linux 10 * Drop --with-ssl-engine from GSI-OpenSSH's configure(.gnu) line * Enable builds on arm64 runners in addition
2 parents 9765d71 + 558833f commit 9e70bcf

5 files changed

Lines changed: 100 additions & 7 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build/Test/Deploy arm64
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- v[0-9]+.[0-9]+.[0-9]+
9+
- v[0-9]+.[0-9]+.[0-9]+.[0-9]+
10+
pull_request:
11+
12+
jobs:
13+
run-scripts:
14+
runs-on: ubuntu-24.04-arm
15+
strategy:
16+
# Don't cancel the remaining running jobs if some job(s) fail(s)
17+
fail-fast: false
18+
matrix:
19+
image: ['rockylinux:8']
20+
components: ['udt,myproxy,ssh', 'gram5']
21+
# Ignore UDT for the CentOS Stream 9 case because libnice is not available there yet
22+
include:
23+
- image: 'quay.io/centos/centos:stream9'
24+
components: 'myproxy,ssh'
25+
- image: 'quay.io/centos/centos:stream9'
26+
components: 'gram5'
27+
- image: 'quay.io/centos/centos:stream10'
28+
components: 'myproxy,ssh'
29+
- image: 'quay.io/centos/centos:stream10'
30+
components: 'gram5'
31+
- image: 'rockylinux:9'
32+
components: 'myproxy,ssh'
33+
- image: 'rockylinux:9'
34+
components: 'gram5'
35+
- image: 'rockylinux/rockylinux:10'
36+
components: 'myproxy,ssh'
37+
- image: 'rockylinux/rockylinux:10'
38+
components: 'gram5'
39+
steps:
40+
- uses: actions/checkout@v3
41+
with:
42+
fetch-depth: 0
43+
44+
- name: build/test on ${{ matrix.image }} with ${{ matrix.components }}
45+
env:
46+
IMAGE: ${{ matrix.image }}
47+
TASK: tests
48+
COMPONENTS: ${{ matrix.components }}
49+
run: travis-ci/setup_tasks.sh
50+
51+
- name: build source tarballs and srpms
52+
# Run this step for all OS cases but for only one component selection each,
53+
# it still builds **all** source tarballs and SRPMs
54+
if: |
55+
contains(matrix.components , 'gram5')
56+
env:
57+
IMAGE: ${{ matrix.image }}
58+
TASK: srpms
59+
run: travis-ci/setup_tasks.sh

.github/workflows/build-test-deploy.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- v[0-9]+.[0-9]+.[0-9]+
99
- v[0-9]+.[0-9]+.[0-9]+.[0-9]+
1010
pull_request:
11-
11+
1212
jobs:
1313
run-scripts:
1414
runs-on: ubuntu-latest
@@ -24,20 +24,28 @@ jobs:
2424
components: 'myproxy,ssh'
2525
- image: 'quay.io/centos/centos:stream9'
2626
components: 'gram5'
27+
- image: 'quay.io/centos/centos:stream10'
28+
components: 'myproxy,ssh'
29+
- image: 'quay.io/centos/centos:stream10'
30+
components: 'gram5'
2731
- image: 'rockylinux:9'
2832
components: 'myproxy,ssh'
2933
- image: 'rockylinux:9'
3034
components: 'gram5'
35+
- image: 'rockylinux/rockylinux:10'
36+
components: 'myproxy,ssh'
37+
- image: 'rockylinux/rockylinux:10'
38+
components: 'gram5'
3139
steps:
3240
- uses: actions/checkout@v3
3341
with:
3442
fetch-depth: 0
35-
43+
3644
- name: build/test on ${{ matrix.image }} with ${{ matrix.components }}
3745
env:
38-
IMAGE: ${{ matrix.image }}
46+
IMAGE: ${{ matrix.image }}
3947
TASK: tests
40-
COMPONENTS: ${{ matrix.components }}
48+
COMPONENTS: ${{ matrix.components }}
4149
run: travis-ci/setup_tasks.sh
4250

4351
- name: build source tarballs and srpms

gsi_openssh/source/configure.gnu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#! /bin/sh
2-
"${0%.gnu}" "$@" --without-zlib-version-check --with-ssl-engine --with-ipaddr-display --with-pam --without-kerberos5 --with-libedit --with-gsi --sysconfdir="\${prefix}/etc/gsissh"
2+
"${0%.gnu}" "$@" --without-zlib-version-check --with-ipaddr-display --with-pam --without-kerberos5 --with-libedit --with-gsi --sysconfdir="\${prefix}/etc/gsissh"

travis-ci/make_source_tarballs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ set -eu
1212

1313
case $(</etc/redhat-release) in
1414
CentOS\ Stream*\ 9*) OS=centos-stream-9;;
15+
CentOS\ Stream*\ 10*) OS=centos-stream-10;;
1516
Rocky\ Linux*\ 8*) OS=rockylinux8 ;;
1617
Rocky\ Linux*\ 9*) OS=rockylinux9 ;;
18+
Rocky\ Linux*\ 10*) OS=rockylinux10 ;;
1719
*) OS=unknown ;;
1820
esac
1921

travis-ci/run_task_inside_docker.sh

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ case $(</etc/redhat-release) in
1616
release_ver=el9
1717
;;
1818

19+
CentOS\ Stream*\ 10*)
20+
21+
OS=centos-stream-10
22+
release_ver=el10
23+
;;
24+
1925
Rocky\ Linux*\ 8*)
2026

2127
OS=rockylinux8
@@ -28,6 +34,12 @@ case $(</etc/redhat-release) in
2834
release_ver=el9
2935
;;
3036

37+
Rocky\ Linux*\ 10*)
38+
39+
OS=rockylinux10
40+
release_ver=el10
41+
;;
42+
3143
*) OS=unknown ;;
3244
esac
3345

@@ -44,12 +56,24 @@ case $OS in
4456
dnf config-manager --set-enabled crb
4557
dnf -y install epel-release
4658
;;
59+
rockylinux10)
60+
dnf -y install dnf-plugins-core
61+
dnf config-manager --set-enabled crb
62+
dnf -y install epel-release
63+
;;
4764
centos-stream-9)
4865
dnf -y install dnf-plugins-core
4966
dnf config-manager --set-enabled crb
5067
dnf -y install \
5168
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
5269
https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
70+
;;
71+
centos-stream-10)
72+
dnf -y install dnf-plugins-core
73+
dnf config-manager --set-enabled crb
74+
dnf -y install \
75+
https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
76+
;;
5377
esac
5478

5579
# Clean the yum cache
@@ -63,7 +87,7 @@ packages=(gcc gcc-c++ make autoconf automake libtool \
6387

6488
# provides `cmp` used by `packaging/git-dirt-filter`
6589
packages+=(diffutils)
66-
if [[ $OS == *9 ]]; then
90+
if [[ $OS == *9 || $OS == *10 ]]; then
6791

6892
# also install "zlib zlib-devel" because it's needed for `configure`ing
6993
# "gridftp/server/src"
@@ -105,7 +129,7 @@ elif [[ $TASK == *rpms ]]; then
105129
# for globus-gram-audit:
106130
packages+=('perl(DBI)')
107131
# for globus-scheduler-event-generator:
108-
if [[ $OS == *9 ]]; then
132+
if [[ $OS == *9 || $OS == *10 ]]; then
109133

110134
# redhat-lsb-core is not available for CentOS Stream 9 / Rocky Linux 9.
111135
# But the default is also to not use LSB, so can be ignored.

0 commit comments

Comments
 (0)