diff options
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/debian.yml | 25 | ||||
-rw-r--r-- | debian/Makefile | 5 | ||||
-rw-r--r-- | debian/Vagrantfile | 4 |
3 files changed, 32 insertions, 2 deletions
diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml new file mode 100644 index 0000000..61deebc --- /dev/null +++ b/.github/workflows/debian.yml @@ -0,0 +1,25 @@ +name: Packages (Debian) + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + name: Binary package + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install dependencies + run: cd debian && sudo make deps + - name: Make binary package + run: cd debian && make bin/test + - name: Upload binary package + uses: actions/upload-artifact@v2 + with: + name: build-area + path: debian/build-area/ diff --git a/debian/Makefile b/debian/Makefile index 5152fdc..51aefa4 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -37,6 +37,11 @@ build_area := $(this_dir)/build-area .PHONY: DO DO: +.PHONY: deps +deps: + apt-get update + apt-get install -y build-essential devscripts dh-make git-buildpackage + .PHONY: dch dch: gbp dch --distribution=unstable diff --git a/debian/Vagrantfile b/debian/Vagrantfile index 6202207..ab1decb 100644 --- a/debian/Vagrantfile +++ b/debian/Vagrantfile @@ -62,8 +62,8 @@ echo 'StreamLocalBindUnlink yes' >> /etc/ssh/sshd_config config.vm.provision "shell", inline: <<-SHELL #!/usr/bin/env bash set -o errexit -o nounset -o pipefail -apt-get update -apt-get install -y build-essential devscripts dh-make git-buildpackage +apt-get update && apt-get install -y make +cd /vagrant/debian && make deps SHELL config.vm.provision :reload |