forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SL-ONY] Add custom silabs worklfows to build sample apps (project-ch…
- Loading branch information
1 parent
0ccb6e3
commit 755ad0b
Showing
6 changed files
with
177 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"default": [ | ||
{ | ||
"boards": ["BRD4186C", "BRD4187C", "BRD2601B", "BRD2703A"], | ||
"arguments": ["--docker"] | ||
}, | ||
{ | ||
"boards": ["BRD4187C"], | ||
"arguments": ["--docker", "--wifi wf200"] | ||
}, | ||
{ | ||
"boards": ["BRD4187C"], | ||
"arguments": ["--docker", "--wifi rs9116"] | ||
}, | ||
{ | ||
"boards": ["BRD4187C"], | ||
"arguments": ["--docker", "--wifi SiWx917"] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"default": [ | ||
{ | ||
"boards": ["BRD4116A", "BRD4117A", "BRD4118A", "BRD2608A"], | ||
"arguments": ["--docker"] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"default": [ | ||
{ | ||
"boards": ["BRD4316A", "BRD4317A", "BRD4318A", "BRD4319A", "BRD2704A"], | ||
"arguments": ["--docker"] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"default": [ | ||
{ | ||
"boards": ["BRD4338A", "BRD2605A", "BRD4343A", "BRD4342A"], | ||
"arguments": ["--docker", "use_rps_extension=false"] | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Build Silabs Examples apps | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- "release_*" | ||
pull_request: | ||
branches: | ||
- main | ||
- "release_*" | ||
|
||
jobs: | ||
build-lighting-app: | ||
name: Build Lighting-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "lighting-app" | ||
output-directory: "./out/lighting-app" | ||
|
||
build-air-quality-sensor-app: | ||
name: Build Air-Quality-Sensor-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "air-quality-sensor-app" | ||
output-directory: "./out/air-quality-sensor-app" | ||
|
||
build-dishwasher-app: | ||
name: Build Dishwasher-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "dishwasher-app" | ||
output-directory: "./out/dishwasher-app" | ||
|
||
build-light-switch-app: | ||
name: Build Light-Switch-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "light-switch-app" | ||
output-directory: "./out/light-switch-app" | ||
|
||
build-lock-app: | ||
name: Build Lock-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "lock-app" | ||
output-directory: "./out/lock-app" | ||
|
||
build-thermostat: | ||
name: Build Thermostat variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "thermostat" | ||
output-directory: "./out/thermostat" | ||
|
||
build-pump-app: | ||
name: Build Pump-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "pump-app" | ||
output-directory: "./out/pump-app" | ||
|
||
build-window-app: | ||
name: Build Window-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "window-app" | ||
output-directory: "./out/window-app" | ||
|
||
build-smoke-co-alarm: | ||
name: Build Smoke-CO-Alarm variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "smoke-co-alarm-app" | ||
output-directory: "./out/smoke-co-alarm-app" | ||
|
||
build-lit-icd-app: | ||
name: Build Lit-ICD-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "lit-icd-app" | ||
output-directory: "./out/lit-icd-app" | ||
|
||
build-refrigerator-app: | ||
name: Build Refrigerator-App variations | ||
uses: ./.github/workflows/silabs-common-build.yaml | ||
with: | ||
example-app: "refrigerator-app" | ||
output-directory: "./out/refrigerator-app" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Common Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
example-app: | ||
required: true | ||
type: string | ||
output-directory: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
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-${{ inputs.example-app }}-${{ matrix.platform }} | ||
|
||
- name: Build ${{ inputs.example-app }} configurations | ||
uses: SiliconLabsSoftware/matter-gn-build-action@v1.1.2 | ||
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: ${{ inputs.example-app }} | ||
build-script: "./scripts/examples/gn_silabs_example.sh" | ||
output-directory: ${{ inputs.output-directory }} |