From 80443c979182feda88675a42d4087bb446d97499 Mon Sep 17 00:00:00 2001 From: Gabriel Fedel Date: Fri, 1 Mar 2024 09:00:30 +0100 Subject: [PATCH] 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 --- .../workflows/release-dkms-deb-package.yml | 33 +++++++++++++++++++ .../workflows/release-dkms-rpm-package.yml | 28 ++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .github/workflows/release-dkms-deb-package.yml create mode 100644 .github/workflows/release-dkms-rpm-package.yml diff --git a/.github/workflows/release-dkms-deb-package.yml b/.github/workflows/release-dkms-deb-package.yml new file mode 100644 index 00000000..18c67d47 --- /dev/null +++ b/.github/workflows/release-dkms-deb-package.yml @@ -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 diff --git a/.github/workflows/release-dkms-rpm-package.yml b/.github/workflows/release-dkms-rpm-package.yml new file mode 100644 index 00000000..dfe216b3 --- /dev/null +++ b/.github/workflows/release-dkms-rpm-package.yml @@ -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