Remove RPM builds in GitHub Workflows
We are now building RPMs via mock in Jenkins, so we don't need these RPM build jobs in GitHub Workflows. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
d8c43bc0e7
commit
0640610f54
1 changed files with 0 additions and 41 deletions
41
.github/workflows/tests.yml
vendored
41
.github/workflows/tests.yml
vendored
|
|
@ -100,44 +100,3 @@ jobs:
|
|||
for f in samples/*; do
|
||||
python3 -m osbuild --libdir . --inspect "$f" > /dev/null
|
||||
done
|
||||
|
||||
rpm_build:
|
||||
name: "📦 RPM"
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
fedora_release: ["31", "32", "33"]
|
||||
container:
|
||||
image: "docker.io/library/fedora:${{ matrix.fedora_release }}"
|
||||
steps:
|
||||
- name: "📥 Prepare container"
|
||||
run: |
|
||||
echo "fastestmirror=1" >> /etc/dnf/dnf.conf
|
||||
echo "install_weak_deps=0" >> /etc/dnf/dnf.conf
|
||||
rm -fv /etc/yum.repos.d/fedora*modular*
|
||||
dnf -y upgrade
|
||||
dnf -y install dnf-plugins-core findutils git make rpm-build rpmdevtools
|
||||
|
||||
- name: "🗄️ Clone the repository"
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: "🛒 Install RPM build dependencies"
|
||||
run: dnf -qy builddep osbuild.spec
|
||||
|
||||
- name: "🛠️ Build RPMs"
|
||||
run: |
|
||||
mkdir rpms
|
||||
make srpm
|
||||
cp -av rpmbuild/SRPMS/*.rpm rpms/
|
||||
make rpm
|
||||
cp -av rpmbuild/RPMS/*/*.rpm rpms/
|
||||
|
||||
- name: "📤 Upload artifacts"
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: rpms
|
||||
path: rpms/
|
||||
|
||||
- name: "🔎 Test RPM installation"
|
||||
run: dnf -y install $(ls rpms/*.noarch.rpm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue