-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (52 loc) · 1.52 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
56
57
58
59
60
61
62
63
64
name: Build
on:
push:
branches:
- jammy
- noble
- oracular
pull_request:
branches:
- jammy
- noble
- oracular
workflow_dispatch:
jobs:
foobar:
runs-on: ubuntu-latest
container: ubuntu:24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Update package list
shell: bash
run: echo "DISTRIBUTION=$(dpkg-parsechangelog -S Distribution)"" >> $GITHUB_ENV
build:
runs-on: ubuntu-latest
container: ubuntu:${{ env.DISTRIBUTION == 'jammy' && '22.04' || env.DISTRIBUTION == 'noble' && '24.04' }}
steps:
- name: Update package list
shell: bash
run: echo ${BRANCH_NAME}
- name: Update package list
shell: bash
run: apt-get update
- name: Upgrade packages
shell: bash
run: apt-get upgrade -y
- name: Checkout repo
uses: actions/checkout@v4
- name: Configure build-dependencies
shell: bash
run: apt-get build-dep . -y
- name: Build package
shell: bash
run: |
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV
dpkg-buildpackage --host-arch arm64 --unsigned-source --unsigned-changes
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.3
with:
name: u-boot-rockchip
path: ${{ env.artifacts_path }}/*.deb
if-no-files-found: error