forked from webketje/tuxedo-backlight-control
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Create main.yml
1 parent
07e25aa
commit f9ab59e
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |