Add Debian package creation to GitHub Actions workflow
All checks were successful
Build / build (push) Successful in 1m2s

Update build workflow to generate a Debian package using checkinstall, including package metadata and artifact upload
This commit is contained in:
2025-01-28 05:11:44 +00:00
parent 39f2fc317e
commit 0f5768f436

View File

@@ -19,7 +19,7 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake libabsl-dev clang
sudo apt-get install -y build-essential cmake libabsl-dev clang checkinstall
- name: Create build directory
run: mkdir build
@@ -34,8 +34,24 @@ jobs:
cd build
make
- name: Upload Binary
- name: Create Debian Package
run: |
cd build
sudo checkinstall --pkgname=cpu-check \
--pkgversion=1.0.0 \
--pkgrelease=1 \
--maintainer="maintainer@example.com" \
--requires="libabsl-dev" \
--default \
--pakdir=. \
--backup=no \
--deldoc=yes \
--deldesc=yes \
--delspec=yes \
make install
- name: Upload Debian Package
uses: actions/upload-artifact@v3
with:
name: cpu-check-binary
path: build/cpu-check
name: cpu-check-deb
path: build/*.deb