-
Notifications
You must be signed in to change notification settings - Fork 11
75 lines (67 loc) · 1.9 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build Open Source Components
on:
pull_request:
paths-ignore:
- "README.md"
- "doc/**"
workflow_run:
workflows:
- Release
types:
- completed
jobs:
build:
runs-on: [self-hosted, Linux]
strategy:
matrix:
machine: ["mt7688", "at91sam"]
steps:
- name: Checkout code including full history and submodules
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Generate locales
run: sudo locale-gen en_US.UTF-8
- name: Install Yocto dependencies
run: |
sudo apt update && sudo apt -qy --no-install-recommends install \
build-essential \
chrpath \
cpio \
debianutils \
diffstat \
gawk \
gcc-multilib \
git-core \
iputils-ping \
libegl1-mesa \
libsdl1.2-dev \
lz4 \
pylint \
python3 \
python3-git \
python3-jinja2 \
python3-pexpect \
python3-pip \
socat \
texinfo \
unzip \
wget \
xterm \
xz-utils \
;
- name: Build Open Source components
run: |
scripts/bbwrapper.sh ${{ matrix.machine }} gardena-image-foss-bnw linux-yocto-tiny u-boot
scripts/bbwrapper.sh ${{ matrix.machine }} package-index
# Ignoring spdx/by-* folders because the action can not deal with colons in
# file names
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Build artifacts (${{ matrix.machine }})
path: |
build-${{ matrix.machine }}/tmp/deploy
!build-${{ matrix.machine }}/tmp/deploy/spdx/by-hash
!build-${{ matrix.machine }}/tmp/deploy/spdx/by-namespace