Skip to content

[SL-ONY] Add custom silabs worklfows to build sample apps #21

[SL-ONY] Add custom silabs worklfows to build sample apps

[SL-ONY] Add custom silabs worklfows to build sample apps #21

Workflow file for this run

name: Build Lighting App
on:
push:
branches:
- main
pull_request:
branches:
- main
- "release_*"
jobs:
build:
name: Build Lighting-App variations
runs-on: ubuntu-latest
container:
image: ghcr.io/project-chip/chip-build-efr32:95
strategy:
matrix:
platform: [mg24, mgm24, mg26, siwx]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: silabs_docker
bootstrap-log-name:
bootstrap-logs-lighting-app-${{ matrix.platform }}
- name: Build Lighting-App configurations
uses: SiliconLabsSoftware/[email protected]
with:
json-file-path: >
${{ matrix.platform == 'mg24' && './.github/silabs-builds-mg24.json' ||
matrix.platform == 'mgm24' && './.github/silabs-builds-mgm24.json' ||
matrix.platform == 'mg26' && './.github/silabs-builds-mg26.json' ||
matrix.platform == 'siwx' && './.github/silabs-builds-siwx.json' }}
example-app: "lighting-app"
build-script: "./scripts/examples/gn_silabs_example.sh"
output-directory: "./out/lighting-app"