-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #447 from brianhlin/fixup-v4-builds
Disable EL8 builds; add RPM build validation to PR CI
- Loading branch information
Showing
2 changed files
with
34 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,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" |
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