-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Include actions to release deb and rpm dkms packages
Commits tagged with kmod-*d* will release deb packages Commits tagged with kmod-*r* will release rpm packages
- Loading branch information
1 parent
d2bf483
commit 80443c9
Showing
2 changed files
with
61 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,33 @@ | ||
name: Create and release kernel module deb package | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'kmod*d*' | ||
|
||
jobs: | ||
Create_Packages: | ||
name: Create Packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "apt-get install" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install dkms debhelper | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: "REPO" | ||
|
||
- name: Build packages | ||
run: | | ||
cd REPO/mrmShared/linux | ||
dpkg-buildpackage | ||
- name: Release the Package | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
REPO/mrmShared/*.deb |
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,28 @@ | ||
name: Create and release kernel module rpm package | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'kmod*r*' | ||
|
||
jobs: | ||
Create_Packages: | ||
name: Create Packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: "REPO" | ||
|
||
- name: Build packages | ||
run: | | ||
cd REPO/mrmShared/linux/dkms-rpm | ||
make | ||
- name: Release the Package | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: REPO/mrmShared/linux/dkms-rpm/rpmbuild/RPMS/*/*.rpm |