Skip to content

Commit bf96cea

Browse files
committed
.github: add workflow for builds
Signed-off-by: Ozan Durgut <[email protected]>
1 parent a09c013 commit bf96cea

File tree

3 files changed

+75
-2
lines changed

3 files changed

+75
-2
lines changed

.github/workflows/build.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Build ADI br2-external
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
BR2_DL_DIR: $HOME/.buildroot-dl
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
defconfig:
18+
- adi_sc598_ezkit_defconfig
19+
20+
steps:
21+
- name: Checkout br2-external
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
26+
- name: Install Buildroot dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y \
30+
build-essential git gcc g++ make bc unzip file rsync \
31+
cpio wget python3
32+
33+
- name: Prepare Buildroot download dir
34+
run: mkdir -p "$BR2_DL_DIR"
35+
36+
- name: Cache Buildroot downloads
37+
uses: actions/cache@v4
38+
with:
39+
path: ${{ env.BR2_DL_DIR }}
40+
key: ${{ runner.os }}-buildroot-dl-${{ hashFiles('configs/**/*.fragment', 'configs/**/*.defconfig') }}
41+
restore-keys: |
42+
${{ runner.os }}-buildroot-dl-
43+
44+
- name: Build image for ${{ matrix.defconfig }}
45+
run: |
46+
cd buildroot
47+
48+
echo ">>> Selecting defconfig: ${{ matrix.defconfig }}"
49+
50+
make BR2_EXTERNAL="${GITHUB_WORKSPACE}" ${{ matrix.defconfig }}
51+
52+
# Merge your fragments if they exist
53+
if [ -f "${GITHUB_WORKSPACE}/configs/buildroot.fragment" ] || \
54+
[ -f "${GITHUB_WORKSPACE}/configs/debug.fragment" ]; then
55+
support/kconfig/merge_config.sh .config \
56+
"${GITHUB_WORKSPACE}/configs/buildroot.fragment" \
57+
"${GITHUB_WORKSPACE}/configs/debug.fragment"
58+
fi
59+
60+
make -j$(nproc)
61+
62+
- name: Upload Buildroot images for ${{ matrix.defconfig }}
63+
if: success()
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: images-${{ matrix.defconfig }}
67+
path: buildroot/output/images
68+
69+
- name: Upload logs for ${{ matrix.defconfig }} (failure only)
70+
if: failure()
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: logs-${{ matrix.defconfig }}
74+
path: buildroot/output/build

board/adi/patches/linux/linux.fragment

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CONFIG_INITRAMFS_COMPRESSION_NONE=y
21
CONFIG_DEBUG_KERNEL=y
32
CONFIG_DEBUG_INFO=y
43
CONFIG_KALLSYMS=y

buildroot

0 commit comments

Comments
 (0)