-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.23 KB
/
build.yaml
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
name: Build
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/vanilla-os/pico:main
volumes:
- /proc:/proc
- /:/run/host
options: --privileged -it
steps:
- uses: actions/checkout@v4
- name: Install needed packages
run: |
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt install -y \
dpkg-dev \
build-essential \
debhelper-compat \
devscripts \
wget \
git
apt-get build-dep -y .
- name: Build debian package
id: build-deb
run: |
dpkg-buildpackage -b -rfakeroot -us -uc
echo "DEB_FILE=hplip_$(dpkg-parsechangelog -S version)_$(dpkg-architecture -qDEB_BUILD_ARCH).deb" >> $GITHUB_OUTPUT
sha256sum /__w/${{ github.event.repository.name }}/hplip_$(dpkg-parsechangelog -S version)_$(dpkg-architecture -qDEB_BUILD_ARCH).deb >> checksums.txt
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: |
/__w/${{ github.event.repository.name }}/${{ steps.build-deb.outputs.DEB_FILE }}
checksum.txt