add sc598 configs for development #20
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 br2-external | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| BR2_DL_DIR: $HOME/.buildroot-dl | |
| 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: Install Buildroot dependencies | |
| run: | | |
| # Refresh repositories | |
| zypper --non-interactive refresh | |
| # Install packages required by Buildroot | |
| zypper --non-interactive install \ | |
| gcc gcc-c++ make wget rsync cpio bc unzip file \ | |
| git python3 tar xz gzip patch which | |
| - name: Prepare Buildroot download dir | |
| run: mkdir -p "$BR2_DL_DIR" | |
| - name: Cache Buildroot downloads | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.BR2_DL_DIR }} | |
| key: ${{ runner.os }}-buildroot-dl-${{ hashFiles('configs/**/*.fragment', 'configs/**/*.defconfig') }} | |
| restore-keys: | | |
| ${{ runner.os }}-buildroot-dl- | |
| - name: Build image for ${{ matrix.defconfig }} | |
| run: | | |
| cd buildroot | |
| echo ">>> Selecting defconfig: ${{ matrix.defconfig }}" | |
| make BR2_EXTERNAL="${GITHUB_WORKSPACE}" ${{ matrix.defconfig }} | |
| if [ -f "${GITHUB_WORKSPACE}/configs/buildroot.fragment" ] || \ | |
| [ -f "${GITHUB_WORKSPACE}/configs/debug.fragment" ]; then | |
| support/kconfig/merge_config.sh .config \ | |
| "${GITHUB_WORKSPACE}/configs/buildroot.fragment" \ | |
| "${GITHUB_WORKSPACE}/configs/debug.fragment" | |
| fi | |
| 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 | |
| - name: Upload logs for ${{ matrix.defconfig }} (failure only) | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: logs-${{ matrix.defconfig }} | |
| path: buildroot/output/build |