From c3905148c125a90284279b9df1c15ab4c2464521 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Sat, 20 Mar 2021 04:37:58 -0500 Subject: [PATCH] do i dare try debian builds --- .github/workflows/build-deb.yml | 34 +++++++++++++++++++++++++++++++++ Cargo.toml | 3 +++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/build-deb.yml 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"