add sc598 configs for development #31
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build ADI artifacts | |
| on: [pull_request] | |
| # The current Buildroot container installs GCC15, while install-compilers.sh | |
| # downloads and uses GCC13 for building host tools. Mixing GCC13-compiled C++ | |
| # host tools with the system libstdc++ from GCC15 leads to ABI mismatches. | |
| # To avoid this, we explicitly set CC/CXX to gcc-15/g++-15 so the build | |
| # consistently uses the GCC15 toolchain. | |
| env: | |
| CC: gcc-15 | |
| CXX: g++-15 | |
| jobs: | |
| build: | |
| runs-on: self-hosted | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| defconfig: | |
| - adi_sc598_ezkit_defconfig | |
| steps: | |
| - name: Checkout br2-external | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Cache download directory | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.buildroot-dl | |
| key: ${{ runner.os }}-buildroot-dl-${{ matrix.defconfig }}-${{ hashFiles('Makefile') }} | |
| restore-keys: ${{ runner.os }}-buildroot-dl-${{ matrix.defconfig }}- | |
| - 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 }}- | |
| - name: Build image for ${{ matrix.defconfig }} | |
| run: | | |
| cd buildroot | |
| make BR2_EXTERNAL="${PWD}/.." ${{ matrix.defconfig }} | |
| support/kconfig/merge_config.sh .config \ | |
| ../configs/buildroot.fragment \ | |
| ../configs/debug.fragment | |
| make -j$(nproc) | |
| - name: Upload Buildroot images for ${{ matrix.defconfig }} | |
| if: success() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: images-${{ matrix.defconfig }} | |
| path: buildroot/output/images |