Skip to content

Conversation

@ozan956
Copy link

@ozan956 ozan956 commented Nov 24, 2025

No description provided.

@ozan956 ozan956 requested a review from pamolloy November 24, 2025 08:04
@ozan956 ozan956 self-assigned this Nov 24, 2025
@pamolloy pamolloy added this to ADSP Nov 24, 2025
@ozan956 ozan956 force-pushed the odurgut branch 7 times, most recently from 632ff3e to bf96cea Compare November 24, 2025 21:32
@ozan956 ozan956 force-pushed the odurgut branch 8 times, most recently from d694aed to 952b839 Compare November 26, 2025 19:34
name: Build ADI br2-external

on:
push:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I'd just build on pull_request since this is currently a rather slow and resource intensive build. At least until we have seen how it performs with ccache and dl cache

Suggested change
push:

env:
BR2_DL_DIR: $HOME/.buildroot-dl
CC: gcc-15
CXX: g++-15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The compiler versions shouldn't matter. Note this would just be used for building host tools.

submodules: recursive

- name: Prepare Buildroot download dir
run: mkdir -p "$BR2_DL_DIR"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buildroot won't create this directory?

key: ${{ runner.os }}-buildroot-dl-${{ hashFiles('configs/**/*.fragment', 'configs/**/*.defconfig') }}
restore-keys: |
${{ runner.os }}-buildroot-dl-

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ccache seems to have been dropped?

- name: Cache ccache directory
uses: actions/cache@v4
with:
path: ~/.buildroot-ccache
key: ${{ runner.os }}-ccache-${{ matrix.defconfig }}-${{ hashFiles('Makefile') }}
restore-keys: ${{ runner.os }}-ccache-${{ matrix.defconfig }}-

@pamolloy
Copy link
Contributor

Latest build error:

warning: refname 'adsp-6.12.0-1' is ambiguous.

https://github.com/analogdevicesinc/br2-external/actions/runs/19715596206/job/56556778405#step:5:17674

run: |
cd buildroot

echo ">>> Selecting defconfig: ${{ matrix.defconfig }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary since the commands are displayed in the little triangle drop down:

https://github.com/analogdevicesinc/br2-external/actions/runs/19715596206/job/56556778405#step:5:6


echo ">>> Selecting defconfig: ${{ matrix.defconfig }}"

make BR2_EXTERNAL="${GITHUB_WORKSPACE}" ${{ matrix.defconfig }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to use the normal BR2_EXTERNAL="${PWD}/.."? The above is a bit more magic

make BR2_EXTERNAL="${GITHUB_WORKSPACE}" ${{ matrix.defconfig }}

if [ -f "${GITHUB_WORKSPACE}/configs/buildroot.fragment" ] || \
[ -f "${GITHUB_WORKSPACE}/configs/debug.fragment" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't conditionalize this. If the files don't exist then the build should fail. This adds complexity and room for error.

[ -f "${GITHUB_WORKSPACE}/configs/debug.fragment" ]; then
support/kconfig/merge_config.sh .config \
"${GITHUB_WORKSPACE}/configs/buildroot.fragment" \
"${GITHUB_WORKSPACE}/configs/debug.fragment"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with above, I'd stick with PWD rather than using the Github workflow specific variables. Keep things simple and use the same commands someone would use on their PC.

uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.defconfig }}
path: buildroot/output/build
Copy link
Contributor

@pamolloy pamolloy Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't just logs, this is the whole build directory. And still missing critical things like the .config. On my local machine this is 12G. This should be removed unless there is a real need that outweighs the resource demand. I manually cancelled this in the latest run after it was running for 17m.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants