wip #175
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 images | |
| on: [push, pull_request] | |
| env: | |
| ARCH: arm mips powerpc riscv sandbox x86 openrisc kvx | |
| jobs: | |
| defconfigs: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Collect defconfigs | |
| id: set-matrix | |
| run: echo "matrix=$(scripts/list-defconfigs.sh $ARCH)" >> $GITHUB_OUTPUT | |
| build: | |
| needs: defconfigs | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/barebox/barebox/barebox-ci:latest | |
| # allow mounting and devtmpfs in the container | |
| options: --user=root --privileged -v /dev:/dev | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJSON(needs.defconfigs.outputs.matrix) }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| export ARCH=${{matrix.arch}} | |
| ./test/generate-dummy-fw.sh | |
| export GNUMAKEFLAGS=--shuffle | |
| ./MAKEALL -O build-${{matrix.arch}} -l "" -v 0 \ | |
| -k common/boards/configs/disable_size_check.config \ | |
| -k common/boards/configs/disable_target_tools.config \ | |
| -k common/boards/configs/enable_werror.config \ | |
| '${{matrix.config}}' |