forked from mendersoftware/meta-mender-community
-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (117 loc) · 3.52 KB
/
build.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: build boards
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '5 2 * * 6'
env:
BUILDDIR: gh
jobs:
prepare:
runs-on: [self-hosted, linux, x64]
steps:
- name: Clean up
run: rm -fR $BUILDDIR
- uses: actions/checkout@v4
- name: cache metadata layers
run: ./ci/update-repos
env:
LAYERCACHE: ${{ vars.PERSISTENT_DIR }}/layers
build:
needs: [prepare]
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
board: [
beaglebone,
beaglebone-ai64,
beagleplay,
hardkernel-odroidc2,
hardkernel-odroidc4,
hardkernel-odroidhc4,
hardkernel-odroidn2,
hardkernel-odroidn2plus,
imx7d-pico,
imx7s-warp,
jetson-agx-xavier-devkit,
jetson-nano-2gb-devkit,
jetson-nano-devkit-emmc,
jetson-nano-devkit,
jetson-tx2-devkit-4gb,
jetson-tx2-devkit-tx2i,
jetson-tx2-devkit,
jetson-xavier-nx-devkit-emmc,
jetson-xavier-nx-devkit-tx2-nx,
jetson-xavier-nx-devkit,
libretech-ac,
libretech-cc,
nitrogen8m,
nitrogen8mm,
nitrogen8mn,
nitrogen8mp,
osd32mp1-emmc-mender,
raspberrypi,
raspberrypi-cm,
raspberrypi0,
raspberrypi0-wifi,
raspberrypi2,
raspberrypi0-2w,
raspberrypi0-2w-64,
raspberrypi3,
raspberrypi3-64,
raspberrypi-cm3,
raspberrypi4,
raspberrypi4-64,
qemuarm64,
qemux86-64,
vexpress-qemu,
vexpress-qemu-flash,
colibri-imx8x,
verdin-imx8mm,
verdin-imx8mp,
imx8mm-var-dart,
sama5d27-som1-ek-sd,
sama5d3-xplained,
intel-corei7-64,
intel-corei7-64-sdcard,
intel-nuc-ssd,
cubox-i,
rock-pi-e,
apalis-imx8,
apalis-imx8-boot2qt,
x86-virtual,
jetson-orin-nano-devkit,
jetson-orin-nano-devkit-nvme,
jetson-agx-orin-devkit,
]
experimental: [false]
subpath: [.]
include:
- board: apalis-imx6
experimental: true
- board: colibri-imx6ull,
experimental: true
- board: stm32mp15-disco
experimental: true
- board: qemuarm64-swupdate
subpath: demos
experimental: true
- board: jetson-agx-orin-devkit
experimental: true
runs-on: [self-hosted, linux, x64]
container:
# the container image needs to be effectively hardcoded, it seems.
image: ghcr.io/theyoctojester/devcontainer-base-yoep:main
volumes:
- ${{ vars.PERSISTENT_DIR }}/downloads:${{ vars.BUILD_DL_DIR }}
- ${{ vars.PERSISTENT_DIR }}/sstate-cache:${{ vars.BUILD_SSTATE_DIR }}
- ${{ vars.PERSISTENT_DIR }}/layers:${{ vars.BUILD_LAYERCACHE_DIR }}
options: --user ${{ vars.KAS_UID }}:${{ vars.KAS_GID }}
steps:
- name: enter build dir and build
env:
DL_DIR: ${{ vars.BUILD_DL_DIR}}
SSTATE_DIR: ${{ vars.BUILD_SSTATE_DIR}}
KAS_REPO_REF_DIR: ${{ vars.BUILD_LAYERCACHE_DIR}}
run: mkdir -p $BUILDDIR/${{ matrix.board }} && cd $BUILDDIR/${{ matrix.board }} && kas build ../../kas/${{ matrix.subpath }}/${{ matrix.board }}.yml