From 13da27364b3d39be347954175fc654802a1df6fe Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 18 May 2026 17:18:11 +0000 Subject: [PATCH] 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. --- .gitea/workflows/ci.yml | 8 ++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- debian/changelog | 7 +++++++ debian/rules | 0 5 files changed, 17 insertions(+), 2 deletions(-) mode change 100644 => 100755 debian/rules diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 219522c..8edf997 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -171,6 +171,10 @@ jobs: sudo apt-get update sudo apt-get -f install -y sudo apt-get install -y build-essential debhelper pkg-config libsystemd-dev libssl-dev + - name: Clean previous build artifacts + run: | + cargo clean + rm -f ../linux-patch-api_*.deb - name: Build Debian package run: | sudo dpkg-buildpackage -us -uc -b -d @@ -204,6 +208,10 @@ jobs: sudo apt-get update sudo apt-get -f install -y sudo apt-get install -y build-essential debhelper pkg-config libsystemd-dev libssl-dev + - name: Clean previous build artifacts + run: | + cargo clean + rm -f ../linux-patch-api_*.deb - name: Build Debian package run: | sudo dpkg-buildpackage -us -uc -b -d diff --git a/Cargo.lock b/Cargo.lock index d272224..8f96b04 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1916,7 +1916,7 @@ dependencies = [ [[package]] name = "linux-patch-api" -version = "1.1.5" +version = "1.1.6" dependencies = [ "actix", "actix-rt", diff --git a/Cargo.toml b/Cargo.toml index aa4e499..bd9a176 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "linux-patch-api" -version = "1.1.6" +version = "1.1.7" edition = "2021" authors = ["Echo "] description = "Secure remote package management API for Linux systems" diff --git a/debian/changelog b/debian/changelog index c31051e..cfbbacb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +linux-patch-api (1.1.7-1) unstable; urgency=low + + * Fix CI pipeline: add cargo clean and remove old .deb artifacts before packaging + * Bump version to 1.1.7 to ensure clean build with correct binary + + -- Echo Mon, 18 May 2026 12:20:00 -0500 + linux-patch-api (1.1.6-1) unstable; urgency=low * Fix rustls CryptoProvider initialization panic on server startup diff --git a/debian/rules b/debian/rules old mode 100644 new mode 100755