Skip to content

Commit

Permalink
feat: Include actions to release deb and rpm dkms packages
Browse files Browse the repository at this point in the history
Commits tagged with kmod-*d* will release deb packages
Commits tagged with kmod-*r* will release rpm packages
  • Loading branch information
gabrielfedel committed Mar 1, 2024
1 parent fb34058 commit 0c52afd
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-dkms-deb-package.yml
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
28 changes: 28 additions & 0 deletions .github/workflows/release-dkms-rpm-package.yml
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

0 comments on commit 0c52afd

Please sign in to comment.