Skip to content

Commit ce409b4

Browse files
committed
Add Build Deb step to github workflows
1 parent 2042027 commit ce409b4

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ jobs:
206206
mv "$APP-$VERSION-$ARCH.AppImage" \
207207
"$APP-$VERSION-$ARCH.AppImage.zsync" dist
208208
209+
- name: Build Deb
210+
shell: bash
211+
if: matrix.build == 'x86_64-linux'
212+
run: |
213+
cargo install cargo-deb
214+
mkdir -p target/release
215+
cp target/${{ matrix.target }}/release/hx target/release/
216+
cargo deb --no-build
217+
mkdir -p dist
218+
mv target/debian/*.deb dist/
219+
209220
- name: Build archive
210221
shell: bash
211222
run: |
@@ -265,6 +276,7 @@ jobs:
265276
266277
if [[ "$platform" = "x86_64-linux" ]]; then
267278
mv bins-$platform/helix-*.AppImage* dist/
279+
mv bins-$platform/*.deb dist/
268280
fi
269281
270282
if [ "$exe" = "" ]; then

helix-term/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ repository.workspace = true
1313
homepage.workspace = true
1414

1515
[package.metadata.deb]
16-
# generate a .deb in target/debian/ with the command:
17-
# cargo build --profile opt --locked
18-
# cargo deb --no-build
16+
# generate a .deb in target/debian/ with the command: cargo deb --no-build
1917
name = "helix"
2018
assets = [
2119
{ source = "target/release/hx", dest = "/usr/lib/helix/", mode = "755" },

0 commit comments

Comments
 (0)