-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 2.11 KB
/
build.yaml
File metadata and controls
66 lines (57 loc) · 2.11 KB
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
name: Build ADI artifacts
on:
workflow_dispatch:
pull_request:
release:
types: [published]
env:
BR2_DL_DIR: ~/.buildroot-dl
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
include:
# SC598 SoM EZ-KIT builds
- defconfig: adi_sc598_ezkit_defconfig
name: sc598-som-ezkit-debug
fragments: ../configs/buildroot.fragment ../configs/debug.fragment
- defconfig: adi_sc598_ezkit_defconfig
name: sc598-som-ezkit-bootstrap
fragments: ../configs/buildroot.fragment ../configs/bootstrap.fragment
# HTOL builds
- defconfig: adi_sc598_ezkit_defconfig
name: sc598-htol-debug
fragments: ../configs/buildroot.fragment ../configs/htol.fragment ../configs/debug.fragment
- defconfig: adi_sc598_ezkit_defconfig
name: sc598-htol-bootstrap
fragments: ../configs/buildroot.fragment ../configs/htol.fragment ../configs/bootstrap.fragment
steps:
- name: Checkout br2-external
uses: actions/checkout@v6
with:
submodules: recursive
- name: Build ${{ matrix.name }}
run: |
cd buildroot
make distclean
make BR2_EXTERNAL="${PWD}/.." ${{ matrix.defconfig }}
support/kconfig/merge_config.sh .config ${{ matrix.fragments }}
make -j$(nproc)
- name: Upload ${{ matrix.name }} images
uses: actions/upload-artifact@v6
with:
name: images-${{ matrix.name }}
path: buildroot/output/images
- name: Archive output images directory
if: ${{ github.event_name == 'release' }}
run: |
tar -cJvf images-${{ matrix.name }}-${{ github.event.release.tag_name }}.tar.xz \
buildroot/output/images/
- name: Upload release archive to release
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: images-${{ matrix.name }}-${{ github.event.release.tag_name }}.tar.xz
tag: ${{ github.ref }}