Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Include action to release deb and rpm dkms packages #134

Merged
merged 3 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 2 additions & 0 deletions mrmShared/linux/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ override_dh_auto_install:
override_dh_auto_clean:
override_dh_installudev:
dh_installudev --priority=50
override_dh_builddeb:
dh_builddeb -- -Zgzip
3 changes: 1 addition & 2 deletions mrmShared/linux/dkms-rpm/mrf.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ Vendor: EPICS Community
License: GPLv2
Group: System Environment/Kernel
URL: https://github.com/epics-modules/mrfioc2
BuildRequires: autoconf libtool gcc gcc-c++
BuildArch: @@ARCH@@
BuildArch: noarch
Requires: dkms
Requires: udev
BuildRoot: %{_tmppath}/%{kmod_name}-%{version}-root
Expand Down
Loading