-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (28 loc) · 1001 Bytes
/
RpmPackages.yml
File metadata and controls
34 lines (28 loc) · 1001 Bytes
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
name: RPM Packages
on:
push:
pull_request:
jobs:
build-rpm:
name: Build RPM Package
runs-on: ubuntu-24.04
steps:
- name: Check out Source Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Build Tools
run: sudo apt-get -y install binutils file rpm composer
- name: Install Dependencies with Composer
run: composer install --ignore-platform-req=php+ --no-dev
- name: Build Package
id: build-package
run: |
rpmbuild -bb packaging/rh.spec
echo "rpm_file="$(find $HOME/rpmbuild/RPMS/ -type f -name '*.rpm') >> "$GITHUB_OUTPUT"
echo "rpm_filename="$(find $HOME/rpmbuild/RPMS/ -type f -name '*.rpm' -exec basename {} \;) >> "$GITHUB_OUTPUT"
- name: Upload artifact
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ steps.build-package.outputs.rpm_filename }}
path: ${{ steps.build-package.outputs.rpm_file }}