Delete CODEOWNERS #31
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
--- | |
name: Check patch | |
permissions: | |
pull-requests: read | |
contents: read | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: centos-stream-8 | |
shortcut: cs8 | |
container-name: el8stream | |
- name: centos-stream-9 | |
shortcut: cs9 | |
container-name: el9stream | |
env: | |
ARTIFACTS_DIR: exported-artifacts | |
name: ${{ matrix.name }} | |
container: | |
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }} | |
steps: | |
- name: prepare env | |
run: | | |
dnf install -y --setopt=tsflags=nodocs git rpmlint glibc-langpack-en | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Run rpmlint | |
run: LC_ALL=en_US.UTF-8 rpmlint ovirt-host.spec | |
- name: Build RPM | |
run: | | |
mkdir -p tmp.repos/SOURCES | |
cp LICENSE tmp.repos/SOURCES | |
rpmbuild -D "_topdir ${PWD}/tmp.repos" -D "release_suffix .$(date -u +%Y%m%d%H%M%S).git$(git rev-parse --short HEAD)" -ba ovirt-host.spec | |
- name: Collect artifacts | |
run: | | |
mkdir -p exported-artifacts | |
find tmp.repos -iname \*rpm -exec mv "{}" exported-artifacts/ \; | |
- name: Test install | |
run: | | |
yum --downloadonly install -y exported-artifacts/*x86_64.rpm | |
- name: Upload RPMs | |
uses: ovirt/upload-rpms-action@v2 | |
with: | |
directory: ${{ env.ARTIFACTS_DIR }} |