From 0f375976a855f36e25ecf6443c191d25d3350a3c Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Fri, 28 Jan 2022 16:21:24 +0100 Subject: [PATCH] Add CentOS Latest and AlmaLinux 8.5 to RPM action --- .github/workflows/rpmbuild.yml | 40 +++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index 3e121d0..e1bd0d5 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -2,7 +2,7 @@ name: Run RPM Build on: push jobs: - build: + build-centos8: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -21,3 +21,41 @@ jobs: with: name: cc-metric-collector SRPM CentOS8 path: ${{ steps.rpm.outputs.source_rpm_path }} + build-centos-latest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: TomTheBear/rpmbuild@centos_latest + id: rpm + name: Build RPM package on CentOS 'Latest' + with: + spec_file: "./scripts/cc-metric-collector.spec" + - name: Save RPM as artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: cc-metric-collector RPM CentOS 'Latest' + path: ${{ steps.rpm.outputs.rpm_dir_path }} + - name: Save SRPM as artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: cc-metric-collector SRPM CentOS 'Latest' + path: ${{ steps.rpm.outputs.source_rpm_path }} + build-alma8.5: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: TomTheBear/rpmbuild@alma8.5 + id: rpm + name: Build RPM package on AlmaLinux 8.5 + with: + spec_file: "./scripts/cc-metric-collector.spec" + - name: Save RPM as artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: cc-metric-collector RPM AlmaLinux 8.5 + path: ${{ steps.rpm.outputs.rpm_dir_path }} + - name: Save SRPM as artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: cc-metric-collector SRPM AlmaLinux 8.5 + path: ${{ steps.rpm.outputs.source_rpm_path }}