-
Notifications
You must be signed in to change notification settings - Fork 13
91 lines (72 loc) · 2.77 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Check patch
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-el8:
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream8
steps:
- name: Prepare env
run: |
mkdir -p ${GITHUB_WORKSPACE}/tmp.repos/BUILD
yum install -y --setopt=tsflags=nodocs autoconf automake createrepo_c gettext-devel git systemd make git rpm-build epel-release
- uses: ovirt/checkout-action@main
- name: Make build
run: |
export EXTRA_DNF_OPT='--enablerepo=powertools'
export HOME=${GITHUB_WORKSPACE}
make -f .copr/Makefile srpm outdir="${GITHUB_WORKSPACE}" spec=rubygem-ovirt-engine-sdk4.spec
- name: Make and test rpm and gem
run: |
export HOME=${GITHUB_WORKSPACE}
./automation/check-merged.sh
- name: Create DNF repository
run: |
createrepo_c ${GITHUB_WORKSPACE}/exported-artifacts/
- name: Test install
run: |
yum install -y ${GITHUB_WORKSPACE}/exported-artifacts/rubygem-ovirt-engine-sdk4*x86_64.rpm
yum module enable -y javapackages-runtime:201801
yum module enable -y maven:3.5
yum module enable -y pki-deps:10.6
yum module enable -y postgresql:12
yum --downloadonly install -y ${GITHUB_WORKSPACE}/exported-artifacts/*x86_64.rpm
yum --downloadonly install -y rubygem-ovirt-engine-sdk4
- name: Upload artifacts
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts
build-el9:
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream9
steps:
- name: Prepare env
run: |
mkdir -p ${GITHUB_WORKSPACE}/tmp.repos/BUILD
yum install -y --setopt=tsflags=nodocs autoconf automake createrepo_c gettext-devel git systemd make git rpm-build epel-release
- uses: ovirt/checkout-action@main
- name: Make build
run: |
export EXTRA_DNF_OPT='--enablerepo=crb*,epel* rubygem-webrick'
export HOME=${GITHUB_WORKSPACE}
make -f .copr/Makefile srpm outdir="${GITHUB_WORKSPACE}" spec=rubygem-ovirt-engine-sdk4.spec
- name: Make and test rpm and gem
run: |
export HOME=${GITHUB_WORKSPACE}
./automation/check-merged.sh
- name: Create DNF repository
run: |
createrepo_c ${GITHUB_WORKSPACE}/exported-artifacts/
- name: Test install
run: |
yum install -y ${GITHUB_WORKSPACE}/exported-artifacts/rubygem-ovirt-engine-sdk4*x86_64.rpm
yum --downloadonly install -y ${GITHUB_WORKSPACE}/exported-artifacts/*x86_64.rpm
- name: Upload artifacts
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts