Skip to content

Commit 2dd3c95

Browse files
committed
fix(ci): skip dpkg clean step to preserve pre-built binary
dpkg-buildpackage runs debian/rules clean before build, which calls cargo clean and deletes the pre-built binary. This triggers a rebuild under dpkg's CFLAGS=-O2, which conflicts with aws-lc-sys's jitterentropy requiring -O0. Adding -nc skips the clean step entirely.
1 parent 77e902c commit 2dd3c95

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ jobs:
297297
patchelf \
298298
libxss-dev \
299299
devscripts \
300-
debhelper \
301-
cmake
300+
debhelper
302301
303302
- name: Setup Node.js
304303
uses: actions/setup-node@v5
@@ -404,8 +403,11 @@ jobs:
404403
DEB_VERSION=$(echo "$VERSION" | sed 's/-/~/g')
405404
sed -i "1s#([^)]*)#($DEB_VERSION-1)#" debian/changelog
406405
407-
# Build the .deb package (-d skips build dependency check since we use pre-built binary)
408-
dpkg-buildpackage -d -uc -us -b
406+
# Build the .deb package
407+
# -d: skip build dependency check since we use pre-built binary
408+
# -nc: skip clean step to preserve the pre-built binary (cargo clean would delete it,
409+
# triggering a rebuild under dpkg's CFLAGS=-O2 which breaks aws-lc-sys compilation)
410+
dpkg-buildpackage -d -uc -us -b -nc
409411
410412
# Move .deb to a known location (dpkg already includes architecture in filename)
411413
mkdir -p dist
@@ -492,8 +494,7 @@ jobs:
492494
librsvg2-dev \
493495
patchelf \
494496
libxss-dev \
495-
rpm \
496-
cmake
497+
rpm
497498
498499
- name: Setup Node.js
499500
uses: actions/setup-node@v5

0 commit comments

Comments
 (0)