Add Debian package creation to GitHub Actions workflow
All checks were successful
Build / build (push) Successful in 1m2s
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:
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@@ -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
|
Reference in New Issue
Block a user