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
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
- name: Create build directory
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
@@ -34,8 +34,24 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
make
|
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
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cpu-check-binary
|
name: cpu-check-deb
|
||||||
path: build/cpu-check
|
path: build/*.deb
|
Reference in New Issue
Block a user