Minor refactor of early init #1287
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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| boards: ${{ steps.board-matrix.outputs.boards }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: ./scripts/deps.sh | |
| - name: Check SPDX tags | |
| run: ./scripts/lint/01-spdx-tags.sh | |
| - name: Check formatting | |
| run: ./scripts/lint/02-uncrustify.sh | |
| - name: Check shell scripts | |
| run: ./scripts/lint/03-shellcheck.sh | |
| - name: Generate board matrix | |
| id: board-matrix | |
| run: echo "boards=$(make list-boards | jq -sRc 'split("\n")[:-1]')" >> $GITHUB_OUTPUT | |
| mega2560: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --yes --no-install-recommends avr-libc make gcc-avr | |
| - name: Build firmware | |
| run: make -C tools/mega2560 VERBOSE=1 | |
| tool: | |
| strategy: | |
| matrix: | |
| include: | |
| - features: | |
| - features: --no-default-features --features="redox_hwio" | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: ./scripts/deps.sh | |
| - name: Build tool | |
| run: cargo build ${{ matrix.features }} --release --manifest-path tools/system76_ectool/Cargo.toml | |
| ec: | |
| runs-on: ubuntu-24.04 | |
| needs: lint | |
| strategy: | |
| matrix: | |
| boards: ${{ fromJson(needs.lint.outputs.boards) }} | |
| # TODO: Conditionally build based on files changed? | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install dependencies | |
| run: ./scripts/deps.sh | |
| - name: Show config | |
| run: make BOARD=${{ matrix.boards }} show-config | |
| - name: Build firmware | |
| run: make BOARD=${{ matrix.boards }} VERBOSE=1 | |
| - name: Show memory layout | |
| run: cat build/ec.mem | |
| continue-on-error: true |