From 468574c2941667b3675a0d216bd7ddefabdab9b7 Mon Sep 17 00:00:00 2001 From: Frank Scheiner Date: Thu, 20 Jan 2022 18:45:45 +0100 Subject: [PATCH 1/4] Also enabled builds on RockyLinux 8 --- .github/workflows/build-test-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 22a1ea9fe..6349574d4 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - image: ['centos:centos7'] + image: ['centos:centos7', 'rockylinux:8'] components: ['udt,myproxy,ssh', 'gram5'] steps: - uses: actions/checkout@v2 From 5a106e0532958a6d2435f91cf068bea10c714ca7 Mon Sep 17 00:00:00 2001 From: Frank Scheiner Date: Thu, 20 Jan 2022 19:02:43 +0100 Subject: [PATCH 2/4] Adapt Travis-CI scripts (used by for GHA, too) accordingly --- travis-ci/run_task_inside_docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/travis-ci/run_task_inside_docker.sh b/travis-ci/run_task_inside_docker.sh index 714a80a30..aa497e6db 100755 --- a/travis-ci/run_task_inside_docker.sh +++ b/travis-ci/run_task_inside_docker.sh @@ -11,6 +11,7 @@ set -e case $( Date: Thu, 20 Jan 2022 19:27:12 +0100 Subject: [PATCH 3/4] PowerTools repo needs to be enabled for specific dependencies, e.g.: * libedit-devel * libnice-devel --- .github/workflows/build-test-deploy.yml | 2 ++ travis-ci/run_task_inside_docker.sh | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 6349574d4..09857103d 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -16,6 +16,8 @@ jobs: components: ['udt,myproxy,ssh', 'gram5'] steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: build/test on ${{ matrix.image }} with ${{ matrix.components }} env: diff --git a/travis-ci/run_task_inside_docker.sh b/travis-ci/run_task_inside_docker.sh index aa497e6db..38c6f3dc9 100755 --- a/travis-ci/run_task_inside_docker.sh +++ b/travis-ci/run_task_inside_docker.sh @@ -12,8 +12,6 @@ case $( Date: Thu, 3 Feb 2022 18:59:18 +0100 Subject: [PATCH 4/4] Also try builds on CentOS Stream 8 and 9 --- .github/workflows/build-test-deploy.yml | 17 +++++++-- travis-ci/run_task_inside_docker.sh | 46 ++++++++++++++++++++----- 2 files changed, 52 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 09857103d..c76cbbd12 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -12,8 +12,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - image: ['centos:centos7', 'rockylinux:8'] + image: ['centos:centos7', 'rockylinux:8', 'quay.io/centos/centos:stream8'] components: ['udt,myproxy,ssh', 'gram5'] + # Ignore UDT for the CentOS Stream 9 case because libnice is not available there yet + include: + - image: 'quay.io/centos/centos:stream9' + components: 'myproxy,ssh' + - image: 'quay.io/centos/centos:stream9' + components: 'gram5' steps: - uses: actions/checkout@v2 with: @@ -27,6 +33,10 @@ jobs: run: travis-ci/setup_tasks.sh - name: build source tarballs and srpms + # Only run this step for the centos:centos7 case and for only one component selection + if: | + contains(matrix.image , 'centos:centos7') && + contains(matrix.components , 'udt,myproxy,ssh') env: IMAGE: centos:centos7 TASK: srpms @@ -34,7 +44,10 @@ jobs: # SSH key recipe from https://www.webfactory.de/blog/use-ssh-key-for-private-repositories-in-github-actions - name: Establish ssh and upload source tarballs - if: contains(github.ref , 'refs/tags/') + # Only run this step for the centos:centos7 case + if: | + contains(matrix.image , 'centos:centos7') && + contains(github.ref , 'refs/tags/') env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | diff --git a/travis-ci/run_task_inside_docker.sh b/travis-ci/run_task_inside_docker.sh index 38c6f3dc9..b573807ca 100755 --- a/travis-ci/run_task_inside_docker.sh +++ b/travis-ci/run_task_inside_docker.sh @@ -9,22 +9,34 @@ COMPONENTS=${3-} set -e case $( /dev/null || useradd travis -u $TRAVISUID -o