mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Build Debian packages in CI
This commit is contained in:
@@ -205,6 +205,16 @@ jobs:
|
|||||||
use-cross: ${{ steps.vars.outputs.CARGO_USE_CROSS }}
|
use-cross: ${{ steps.vars.outputs.CARGO_USE_CROSS }}
|
||||||
command: build
|
command: build
|
||||||
args: --release --target=${{ matrix.job.target }} ${{ matrix.job.cargo-options }} ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }}
|
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
|
- name: Test
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
@@ -216,6 +226,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }}
|
name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }}
|
||||||
path: target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}
|
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
|
- name: Package
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+14
@@ -4,6 +4,7 @@ description = "A more intuitive version of du"
|
|||||||
version = "0.6.2"
|
version = "0.6.2"
|
||||||
authors = ["bootandy <bootandy@gmail.com>", "nebkor <code@ardent.nebcorp.com>"]
|
authors = ["bootandy <bootandy@gmail.com>", "nebkor <code@ardent.nebcorp.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
readme = "README.md"
|
||||||
|
|
||||||
documentation = "https://github.com/bootandy/dust"
|
documentation = "https://github.com/bootandy/dust"
|
||||||
homepage = "https://github.com/bootandy/dust"
|
homepage = "https://github.com/bootandy/dust"
|
||||||
@@ -40,3 +41,16 @@ tempfile = "=3"
|
|||||||
[[test]]
|
[[test]]
|
||||||
name = "integration"
|
name = "integration"
|
||||||
path = "tests/tests.rs"
|
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'.
|
||||||
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user