Build Debian packages in CI

This commit is contained in:
Ethan Smith
2021-09-05 01:16:02 -07:00
committed by andy.boot
parent ca0a93f222
commit c25f7d342c
2 changed files with 29 additions and 0 deletions

View File

@@ -205,6 +205,16 @@ jobs:
use-cross: ${{ steps.vars.outputs.CARGO_USE_CROSS }}
command: build
args: --release --target=${{ matrix.job.target }} ${{ matrix.job.cargo-options }} ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }}
- name: Install cargo-deb
uses: action-rs/cargo@v1
with:
command: install
args: cargo-deb
- name: Build deb
uses: action-rs/cargo@v1
with:
command: deb
args: --no-build --target=${{ matrix.job.target }}
- name: Test
uses: actions-rs/cargo@v1
with:
@@ -216,6 +226,11 @@ jobs:
with:
name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }}
path: target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}
- name: Archive deb artifacts
uses: actions/upload-artifact@master
with:
name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }}.deb
path: target/${{ matrix.job.target }}/debian
- name: Package
shell: bash
run: |

View File

@@ -4,6 +4,7 @@ description = "A more intuitive version of du"
version = "0.6.2"
authors = ["bootandy <bootandy@gmail.com>", "nebkor <code@ardent.nebcorp.com>"]
edition = "2018"
readme = "README.md"
documentation = "https://github.com/bootandy/dust"
homepage = "https://github.com/bootandy/dust"
@@ -40,3 +41,16 @@ tempfile = "=3"
[[test]]
name = "integration"
path = "tests/tests.rs"
[package.metadata.deb]
section = "utils"
assets = [
["target/release/dust", "usr/bin/", "755"],
["LICENSE", "usr/share/doc/du-dust/", "644"],
["README.md", "usr/share/doc/du-dust/README", "644"],
]
extended-description = """\
Dust is meant to give you an instant overview of which directories are using
disk space without requiring sort or head. Dust will print a maximum of one
'Did not have permissions message'.
"""