nut-debian/.github/workflows/build.yml

27 lines
969 B
YAML
Raw Normal View History

2023-09-30 15:54:25 +03:00
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
2023-09-30 19:23:12 +03:00
Build-NUT-ARM64:
2023-09-30 16:24:23 +03:00
runs-on: ubuntu-22.04
2023-09-30 15:54:25 +03:00
steps:
2023-09-30 20:15:02 +03:00
- name: Install build dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: build-essential asciidoc debhelper dh-python docbook-xml libavahi-client-dev libavahi-core-dev libfreeipmi-dev libgd-dev libi2c-dev libipmimonitoring-dev libmodbus-dev libneon27-dev libnss3-dev libpowerman0-dev libsnmp-dev libusb-1.0-0-dev libwrap0-dev libxml2-utils xsltproc asciidoc-dblatex dblatex docbook-xsl
version: 1.0
2023-09-30 20:50:44 +03:00
- name: Restore cached repo
uses: actions/cache/restore@v3
with:
path: repo/
key: ${{ runner.arch }}-build
2023-09-30 15:54:25 +03:00
- name: Check out repository code
uses: actions/checkout@v4
2023-09-30 20:50:44 +03:00
with:
path: repo/
- name: Build the DEB packages
run: dpkg-buildpackage -b -us -uc