Skip to content

Commit

Permalink
add ci checks
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDaveD committed Sep 6, 2024
1 parent a2ba972 commit ef8138e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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-latest
container: ${{ matrix.distro }}:${{ matrix.version }}
steps:
- name: Get source code
uses: actions/checkout@v3

- name: Install dependencies
run: |
yum -y install cpio
- name: Remove apparmor restriction on unprivileged user namespace
run: sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: Make and test distributions
run: |
set -ex; \
for DIST in default osg egi; do \
rm -rf dist; \
./makedist $DIST; \
./cvmfsexec atlas.cern.ch -- ls /cvmfs/atlas.cern.ch; \
done
6 changes: 5 additions & 1 deletion makedist
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ fi
echo "Making $SINGMSG$DISTTYPE distribution for $MACHTYPE"

getcoprurl() {
if [ ! -f /usr/bin/yumdownloader ]; then
echo "yumdownloader not found, skipping trying to get $1 from copr" >&2
return
fi
typeset TMPF=$(mktemp)
typeset REPONAME=makedist-$1
cat >$TMPF <<!EOF!
Expand Down Expand Up @@ -285,7 +289,7 @@ if $INCLUDEHELPER; then
fi
URLS="$URLS $BASEURL/$HELPER"
if [ "$EL" -lt 8 ]; then
EPELURL="https://download.fedoraproject.org/pub/epel/$EL/$ARCH/Packages"
EPELURL="https://archives.fedoraproject.org/pub/archive/epel/$EL/$ARCH/Packages"
else
EPELURL="https://download.fedoraproject.org/pub/epel/$EL/Everything/$ARCH/Packages"
fi
Expand Down

0 comments on commit ef8138e

Please sign in to comment.