Skip to content

Commit

Permalink
Merge pull request #447 from brianhlin/fixup-v4-builds
Browse files Browse the repository at this point in the history
Disable EL8 builds; add RPM build validation to PR CI
  • Loading branch information
brianhlin authored Mar 30, 2021
2 parents 844cc07 + 1bc652e commit 8aec432
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/build_rpms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test building of HTCondor-CE RPMs
on: [pull_request]

jobs:
build-rpms-and-upload:
runs-on: ubuntu-latest
if: startsWith(github.repository, 'htcondor/')
strategy:
matrix:
dver: [7]
steps:
- uses: actions/checkout@v2

- name: Prepare Docker
run: |
echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null &&
sudo service docker restart
- name: Start CentOS ${{ matrix.dver}} image
run: |
docker run --detach --env "container=docker" \
--name $GITHUB_SHA \
--volume "$PWD":/htcondor-ce:rw \
centos:centos${{ matrix.dver }} \
/usr/sbin/init
- name: Build CHTC EL${{ matrix.dver }} RPMs
run: |
docker exec $GITHUB_SHA \
/bin/bash -xc \
"/htcondor-ce/tests/build_rpms.sh \
${{ matrix.dver }} \
uw_build"
2 changes: 1 addition & 1 deletion .github/workflows/upload_rpms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
if: startsWith(github.repository, 'htcondor/')
strategy:
matrix:
dver: [7, 8]
dver: [7]
steps:
- uses: actions/checkout@v2

Expand Down

0 comments on commit 8aec432

Please sign in to comment.