Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
TheMystery28 authored Jul 6, 2024
1 parent 07e25aa commit f9ab59e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build RPM Package

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up RPM build environment
run: |
sudo apt-get update
sudo apt-get install -y rpm build-essential
- name: Install dependencies
run: |
sudo apt-get install -y tuxedo-backlight-control
- name: Build RPM package
run: |
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
cp tuxedo-backlight-control.spec ~/rpmbuild/SPECS/
rpmbuild -ba ~/rpmbuild/SPECS/tuxedo-backlight-control.spec
- name: Upload RPM package
uses: actions/upload-artifact@v2
with:
name: tuxedo-backlight-control
path: ~/rpmbuild/RPMS/x86_64/*.rpm

0 comments on commit f9ab59e

Please sign in to comment.