forked from cvmfs/cvmfsexec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Make distributions and test | ||
|
||
on: | ||
# run workflows on main master and release/** branches | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- release/** | ||
# run workflows on pull requests against the same branches | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- release/** | ||
|
||
# automatically cancel redundant builds | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
makeandtest: | ||
name: EL ${{ matrix.version }} (${{ matrix.distro }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- distro: eurolinux/centos-7 | ||
version: latest | ||
- distro: rockylinux | ||
version: 8 | ||
- distro: rockylinux | ||
version: 9 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Get source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run make-and-test under docker | ||
run: ./ci/docker-run ${{ matrix.distro }}:${{ matrix.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash -e | ||
# Run docker as shown at | ||
# https://djw8605.github.io/2016/05/03/building-centos-packages-on-travisci/ | ||
# | ||
# This more complicated setup is needed for github actions too because | ||
# they do not provide a mechanism for reliably enabling user namespaces. | ||
# Github actions does at least start a VM with docker already running. | ||
|
||
# Assumes running on Ubuntu 24+ | ||
|
||
DOCKER_HUB_URI="$1" | ||
docker pull "$DOCKER_HUB_URI" | ||
|
||
DOCKER_CONTAINER_NAME="test_${OS_TYPE##*/}_${OS_VERSION//./_}" | ||
|
||
set -x | ||
docker run --privileged --network=host -v "$(pwd):/source:rw" \ | ||
--name "$DOCKER_CONTAINER_NAME" "$DOCKER_HUB_URI" /bin/bash -exc \ | ||
"cd /source && ./ci/make-and-test" | ||
|
||
docker ps -a | ||
docker stop "$DOCKER_CONTAINER_NAME" | ||
docker rm -v "$DOCKER_CONTAINER_NAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
yum -y install procps-ng cpio findutils | ||
|
||
# because host kernel is Ubuntu 24+, this enables user namespaces | ||
sysctl kernel.apparmor_restrict_unprivileged_userns=0 | ||
|
||
for DIST in default osg egi; do | ||
rm -rf dist | ||
./makedist $DIST | ||
./cvmfsexec atlas.cern.ch -- ls /cvmfs/atlas.cern.ch | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters