Private
Public Access
1
0
Files
linux_patch_api/debian/rules
Echo 74288e1dfc
All checks were successful
CI/CD Pipeline / Code Format (push) Successful in 1s
CI/CD Pipeline / Clippy Lints (push) Successful in 44s
CI/CD Pipeline / All Unit Tests (push) Successful in 1m12s
CI/CD Pipeline / Security Audit (push) Successful in 5s
CI/CD Pipeline / Enrollment Tests (push) Successful in 1m56s
CI/CD Pipeline / Verify Enrollment CLI Flag (push) Successful in 1m25s
CI/CD Pipeline / Build Debian Package (Ubuntu 22.04) (push) Successful in 2m29s
CI/CD Pipeline / Build Arch Package (push) Successful in 2m50s
CI/CD Pipeline / Build Alpine Package (push) Successful in 3m55s
CI/CD Pipeline / Build Debian Package (push) Successful in 2m10s
CI/CD Pipeline / Build RPM Package (push) Successful in 4m15s
fix(ci): add cargo clean and artifact removal before packaging; bump to 1.1.7
- Insert 'Clean previous build artifacts' step (cargo clean + rm old .deb)
  before Build Debian package in both build-deb and build-deb-u2204 jobs.
- Bump version to 1.1.7 to ensure a clean build from scratch.
- Update debian/changelog with 1.1.7-1 entry.
2026-05-18 17:18:11 +00:00

35 lines
1.2 KiB
Makefile
Executable File

#!/usr/bin/make -f
# debian/rules for linux-patch-api
export DEB_CARGO_PACKAGE=linux-patch-api
export DEB_CARGO_BUILD_FLAGS=--release
%:
dh $@
override_dh_auto_build:
. "$$HOME/.cargo/env" && cargo build --release --target x86_64-unknown-linux-gnu
override_dh_auto_install:
dh_auto_install
# Create installation directories in debian/tmp
mkdir -p debian/tmp/usr/bin
mkdir -p debian/tmp/etc/linux_patch_api
mkdir -p debian/tmp/lib/systemd/system
mkdir -p debian/tmp/var/log/linux_patch_api
mkdir -p debian/tmp/var/lib/linux_patch_api
# Install binary
install -D -m 755 target/x86_64-unknown-linux-gnu/release/linux-patch-api debian/tmp/usr/bin/linux-patch-api
# Install systemd service
install -D -m 644 configs/linux-patch-api.service debian/tmp/lib/systemd/system/linux-patch-api.service
# Install default configs
install -D -m 644 configs/config.yaml.example debian/tmp/etc/linux_patch_api/config.yaml
install -D -m 644 configs/whitelist.yaml.example debian/tmp/etc/linux_patch_api/whitelist.yaml
# Install CA certificates
install -d -m 755 debian/tmp/etc/linux_patch_api/certs
cp configs/certs/ca.pem debian/tmp/etc/linux_patch_api/certs/ 2>/dev/null || true
override_dh_auto_test:
# Skip tests during package build (tests run in CI test job)
true