Debian Codegraph @

.github/workflows/debs.yml

raw
1 name: Debian Packaging CI
2 on: [push, pull_request]
3
4 jobs:
5 build:
6 runs-on: ubuntu-latest
7 strategy:
8 fail-fast: false
9 matrix:
10 container:
11 - ubuntu:20.04
12 - ubuntu:22.04
13 - ubuntu:24.04
14 - debian:12
15 - debian:sid
16 defaults:
17 run:
18 shell: bash
19
20 steps:
21 - name: Checkout code
22 uses: actions/checkout@v4
23 with:
24 ref: ${{ github.event.sha }}
25 fetch-depth: 0
26 fetch-tags: true
27 - name: Get tags from upstream, if needed
28 if: github.repository != 'Azure/azure-vm-utils'
29 run: |
30 git remote add upstream https://github.com/Azure/azure-vm-utils.git
31 git fetch upstream --tags
32 - name: Build debs
33 run: |
34 ./scripts/build-deb.sh
35 - name: Lintian check
36 run: |
37 lintian --fail-on error,warning out/*.deb
38 - name: Install debs
39 run: |
40 sudo dpkg -i out/*.deb
41 - name: Verify installation
42 run: |
43 set -x
44 dpkg -L azure-vm-utils
45 test -f /usr/lib/systemd/network/01-azure-unmanaged-sriov.network
46 test -f /usr/lib/udev/rules.d/10-azure-unmanaged-sriov.rules
47 test -f /usr/lib/udev/rules.d/80-azure-disk.rules
48 test -x /usr/sbin/azure-nvme-id
49 test -x /usr/sbin/azure-vm-utils-selftest
50 test -f /usr/share/initramfs-tools/hooks/azure-disk
51 test -f /usr/share/initramfs-tools/hooks/azure-unmanaged-sriov
52 test -f /usr/share/man/man8/azure-nvme-id.8.gz
53 test -f /usr/share/man/man8/azure-vm-utils-selftest.8.gz
54 azure-nvme-id --version
55 azure-vm-utils-selftest --skip-imds-validation --skip-symlink-validation