diff --git a/.github/workflows/build-deb.yml b/.github/workflows/build-deb.yml new file mode 100644 index 0000000..4a2f9cf --- /dev/null +++ b/.github/workflows/build-deb.yml @@ -0,0 +1,34 @@ +on: [push] + +name: build-deb + +jobs: + build_deb: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + + - name: build-deb + run: | + cargo install cargo-deb + cargo deb + - uses: actions/upload-artifact@v2 + with: + name: panorama.deb + path: target/debian/panorama*.deb + + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo + +# vim: set ts=2 tw=2 sw=2 et : diff --git a/Cargo.toml b/Cargo.toml index 9782297..cd7cb8a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,3 +54,6 @@ version = "0" [features] clippy = [] + +[package.metadata.deb] +depends = "$auto"