forked from Azure/azure-vm-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.51 KB
/
debs.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Debian Packaging CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.sha }}
fetch-depth: 0
fetch-tags: true
- name: Get tags from upstream, if needed
if: github.repository != 'Azure/azure-vm-utils'
run: |
git remote add upstream https://github.com/Azure/azure-vm-utils.git
git fetch upstream --tags
- name: Setup
run: |
sudo apt update
sudo apt install gcc pandoc cmake devscripts debhelper -y
- name: Build debs
run: |
DEBEMAIL="Azure VM Utils CI <azure/[email protected]>" ./scripts/build-deb.sh
- name: Lintian check
run: |
lintian out/*.deb
- name: Install debs
run: |
sudo dpkg -i out/*.deb
- name: Verify installation
run: |
set -x
dpkg -L azure-vm-utils
test -f /usr/share/initramfs-tools/hooks/azure-disk
test -f /usr/share/initramfs-tools/hooks/azure-unmanaged-sriov
test -f /usr/share/man/man8/azure-nvme-id.8.gz
test -f /usr/sbin/azure-nvme-id
test -f /lib/systemd/network/10-azure-unmanaged-sriov.network
test -f /lib/udev/rules.d/10-azure-unmanaged-sriov.rules
test -f /lib/udev/rules.d/80-azure-disk.rules
azure-nvme-id --version