diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index b48489b..861ca39 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -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: | diff --git a/Cargo.toml b/Cargo.toml index deef378..3656aed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ description = "A more intuitive version of du" version = "0.6.2" authors = ["bootandy ", "nebkor "] 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'. +"""