File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ steps :
15+ - name : Checkout br2-external
16+ uses : actions/checkout@v4
17+ with :
18+ submodules : recursive
19+
20+ - name : Install Buildroot dependencies
21+ run : |
22+ sudo apt-get update
23+ sudo apt-get install -y \
24+ build-essential git gcc g++ make bc unzip file rsync \
25+ cpio wget python3
26+
27+ - name : Prepare Buildroot download dir
28+ run : mkdir -p "$BR2_DL_DIR"
29+
30+ - name : Cache Buildroot downloads
31+ uses : actions/cache@v4
32+ with :
33+ path : ${{ env.BR2_DL_DIR }}
34+ key : ${{ runner.os }}-buildroot-dl-${{ hashFiles('**/configs/*.fragment', '**/configs/*.defconfig') }}
35+ restore-keys : |
36+ ${{ runner.os }}-buildroot-dl-
37+
38+ - name : Build ADI SC598 EZ-Kit image
39+ run : |
40+ cd buildroot
41+
42+ make BR2_EXTERNAL="${GITHUB_WORKSPACE}" adi_sc598_ezkit_defconfig
43+
44+ support/kconfig/merge_config.sh .config \
45+ "${GITHUB_WORKSPACE}/configs/buildroot.fragment" \
46+ "${GITHUB_WORKSPACE}/configs/debug.fragment"
47+
48+ make -j$(nproc)
49+
50+ - name : Upload Buildroot output images
51+ if : success()
52+ uses : actions/upload-artifact@v4
53+ with :
54+ name : buildroot-images
55+ path : buildroot/output/images
56+
57+ - name : Upload build logs on failure
58+ if : failure()
59+ uses : actions/upload-artifact@v4
60+ with :
61+ name : build-logs
62+ path : buildroot/output/build
You can’t perform that action at this time.
0 commit comments