summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/debian.yml
blob: db132fdc55ad7d302b4fd1a0d281ba8e62d256f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build .deb package

on:
  push: {}
    tags:
      - 'v*.*.*'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          path: ucode/

      - name: Install dependencies
        run: |
          sudo apt update
          sudo apt install devscripts build-essential lintian libjson-c-dev debhelper-compat debhelper

      - name: Build package
        run: |
          cd ucode/
          touch ucc utpl
          dpkg-buildpackage -b -us -uc

      - name: Archive code coverage results
        uses: actions/upload-artifact@v3
        with:
          name: deb
          path: '*ucode*.deb'