lib: bm_spi_mngr: sample: port SPI transaction manager to NCS bare metal, add sample and board configs #5259
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 samples | |
| on: | |
| pull_request: | |
| types: [push, opened, reopened, synchronize] | |
| schedule: | |
| - cron: "0 4 * * 1-5" | |
| workflow_dispatch: | |
| jobs: | |
| build_samples_job: | |
| name: Build all samples within the project | |
| runs-on: | |
| - runs-on=${{ github.run_id }} | |
| - runner=64cpu-linux-x64 | |
| # Keep aligned with target NCS version | |
| container: ghcr.io/nrfconnect/sdk-nrf-toolchain:v3.2.0 | |
| defaults: | |
| run: | |
| # Bash shell is needed to set toolchain related environment variables in docker container | |
| # It is a workaround for GitHub Actions limitation https://github.com/actions/runner/issues/1964 | |
| shell: bash | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| with: | |
| path: nrf-bm | |
| fetch-depth: 0 | |
| - name: restore-cache-sdk | |
| id: cache-sdk | |
| uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4 | |
| with: | |
| path: | | |
| nrf | |
| zephyr | |
| modules | |
| key: ${{ runner.os }}-nrf-sdk | |
| - name: Prepare west project | |
| run: | | |
| west init -l nrf-bm | |
| west update -o=--depth=1 -n | |
| - name: Build samples on commit | |
| if: github.event.pull_request | |
| working-directory: nrf-bm | |
| run: | | |
| west twister -T samples --build-only -vc --inline-logs --integration --subset 1/2 | |
| west twister -T samples --build-only -vc --inline-logs --integration --subset 2/2 | |
| - name: Build samples nightly | |
| if: ${{ github.event.schedule || github.event.workflow_dispatch }} | |
| working-directory: nrf-bm | |
| # Split the run into multiple calls as we have limited space for the workflow | |
| run: | | |
| west twister -T samples --build-only -vc --inline-logs --subset 1/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 2/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 3/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 4/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 5/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 6/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 7/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 8/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 9/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 10/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 11/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 12/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 13/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 14/15 | |
| west twister -T samples --build-only -vc --inline-logs --subset 15/15 | |
| - name: upload-logs | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| if: ${{ failure() && !contains(github.event.pull_request.user.login, 'dependabot[bot]') }} | |
| with: | |
| name: build-logs | |
| path: nrf-bm/twister-out/** | |
| retention-days: 5 | |
| - name: save-cache-sdk | |
| if: always() && steps.cache-sdk.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4 | |
| with: | |
| path: | | |
| nrf | |
| zephyr | |
| modules | |
| key: ${{ steps.cache-sdk.outputs.cache-primary-key }} |