ci: build .deb manually with dpkg-deb instead of cargo-deb
Some checks failed
Release / release (push) Failing after 53s
Some checks failed
Release / release (push) Failing after 53s
This commit is contained in:
parent
62c4c7c6cb
commit
ef49632ef0
1 changed files with 21 additions and 6 deletions
|
|
@ -18,7 +18,6 @@ jobs:
|
|||
run: |
|
||||
apt-get update
|
||||
apt-get install -y dpkg-dev git curl openssh-client
|
||||
cargo install cargo-deb
|
||||
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
|
|
@ -36,14 +35,30 @@ jobs:
|
|||
working-directory: src
|
||||
run: |
|
||||
VERSION=${{ github.ref_name }}
|
||||
VER=${VERSION#v}
|
||||
mkdir -p dist
|
||||
|
||||
cargo deb
|
||||
ls -la target/debian/
|
||||
file target/debian/*.deb
|
||||
dpkg-deb -I target/debian/*.deb
|
||||
cp target/debian/*.deb dist/
|
||||
cargo build --release
|
||||
|
||||
# .deb package
|
||||
DEB_DIR="lview_${VER}_amd64"
|
||||
mkdir -p "${DEB_DIR}/DEBIAN" "${DEB_DIR}/usr/bin"
|
||||
cp target/release/lview "${DEB_DIR}/usr/bin/lview"
|
||||
chmod 755 "${DEB_DIR}/usr/bin/lview"
|
||||
|
||||
cat > "${DEB_DIR}/DEBIAN/control" << CONTROL
|
||||
Package: lview
|
||||
Version: ${VER}
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: janvete <jan.vete@example.com>
|
||||
Description: TUI for viewing remote logs over SSH
|
||||
CONTROL
|
||||
|
||||
dpkg-deb --build "${DEB_DIR}" "dist/${DEB_DIR}.deb"
|
||||
|
||||
# Linux tarball
|
||||
STAGING=$(mktemp -d)
|
||||
cp target/release/lview "${STAGING}/lview"
|
||||
tar -czf "dist/lview-${VERSION}-linux-amd64.tar.gz" -C "${STAGING}" lview
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue