-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.49 KB
/
compile.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
46
47
48
49
50
51
52
53
54
55
---
name: Build
on:
push:
branches:
- jammy
- noble
- oracular
pull_request:
branches:
- jammy
- noble
- oracular
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update package list
shell: bash
run: sudo apt-get update
- name: Upgrade packages
shell: bash
run: sudo apt-get upgrade -y
- name: Install build-dependencies
shell: bash
run: sudo apt-get install -y pbuilder
- name: Checkout repo
uses: actions/checkout@v4
- name: Create base tarball
shell: bash
run: |
dpkg-source -b .
distribution="$(dpkg-parsechangelog -S Distribution)"
sudo pbuilder create --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution ${distribution}
- name: Build package
shell: bash
run: |
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV
distribution="$(dpkg-parsechangelog -S Distribution)"
sudo pbuilder build --architecture arm64 --mirror http://ports.ubuntu.com/ubuntu-ports --distribution ${distribution} --buildresult ../out --debbuildopts "-a arm64" ../*.dsc
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.3
with:
name: ubuntu-rockchip-meta
path: ${{ env.artifacts_path }}/out/*
if-no-files-found: error