Skip to content

Commit

Permalink
[Telink] Add retention board to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 authored and andriy-bilynskyy committed Oct 20, 2023
1 parent 00cd3af commit 7e2471e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 21 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
with:
gh-context: ${{ toJson(github) }}

- name: Build example Telink (B92) Air Quality Sensor App
- name: Build example Telink (B92 retention) Air Quality Sensor App
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-air-quality-sensor' build"
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-air-quality-sensor' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tlsr9528a air-quality-sensor-app \
out/telink-tlsr9528a-air-quality-sensor/zephyr/zephyr.elf \
telink tlsr9528a_retention air-quality-sensor-app \
out/telink-tlsr9528a_retention-air-quality-sensor/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: clean out build output
Expand Down Expand Up @@ -102,13 +102,13 @@ jobs:
- name: clean out build output
run: rm -rf ./out

- name: Build example Telink (B92) Contact Sensor App
- name: Build example Telink (B92 retention) Contact Sensor App
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-contact-sensor' build"
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-contact-sensor' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tlsr9528a contact-sensor-app \
out/telink-tlsr9528a-contact-sensor/zephyr/zephyr.elf \
telink tlsr9528a_retention contact-sensor-app \
out/telink-tlsr9528a_retention-contact-sensor/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: clean out build output
Expand Down Expand Up @@ -148,13 +148,13 @@ jobs:
- name: clean out build output
run: rm -rf ./out

- name: Build example Telink (B92) Lock App with DFU
- name: Build example Telink (B92 retention) Lock App with DFU
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-lock-dfu' build"
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-lock-dfu' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tlsr9528a lock-app-dfu \
out/telink-tlsr9528a-lock-dfu/zephyr/zephyr.elf \
telink tlsr9528a_retention lock-app-dfu \
out/telink-tlsr9528a_retention-lock-dfu/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: clean out build output
Expand Down Expand Up @@ -220,25 +220,25 @@ jobs:
- name: clean out build output
run: rm -rf ./out

- name: Build example Telink (B92) Smoke CO Alarm App
- name: Build example Telink (B92 retention) Smoke CO Alarm App
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-smoke-co-alarm' build"
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-smoke-co-alarm' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tlsr9528a smoke_co_alarm-app \
out/telink-tlsr9528a-smoke-co-alarm/zephyr/zephyr.elf \
telink tlsr9528a_retention smoke_co_alarm-app \
out/telink-tlsr9528a_retention-smoke-co-alarm/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: clean out build output
run: rm -rf ./out

- name: Build example Telink (B92) Temperature Measurement App
- name: Build example Telink (B92 retention) Temperature Measurement App
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tlsr9528a-temperature-measurement' build"
"./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-temperature-measurement' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tlsr9528a temperature-measurement-app \
out/telink-tlsr9528a-temperature-measurement/zephyr/zephyr.elf \
telink tlsr9528a_retention temperature-measurement-app \
out/telink-tlsr9528a_retention-temperature-measurement/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: clean out build output
Expand Down
1 change: 1 addition & 0 deletions integrations/cloudbuild/build-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ steps:
--target qpg-qpg6105-shell
--target telink-tlsr9518adk80d-light
--target telink-tlsr9528a-light
--target telink-tlsr9528a_retention-light-switch
--target tizen-arm-light
build
--create-archives /workspace/artifacts/
Expand Down
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ def BuildTelinkTarget():
target.AppendFixedTargets([
TargetPart('tlsr9518adk80d', board=TelinkBoard.TLSR9518ADK80D),
TargetPart('tlsr9528a', board=TelinkBoard.TLSR9528A),
TargetPart('tlsr9528a_retention', board=TelinkBoard.TLSR9528A_RETENTION),
])

target.AppendFixedTargets([
Expand Down
3 changes: 3 additions & 0 deletions scripts/build/builders/telink.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,15 @@ def AppNamePrefix(self):
class TelinkBoard(Enum):
TLSR9518ADK80D = auto()
TLSR9528A = auto()
TLSR9528A_RETENTION = auto()

def GnArgName(self):
if self == TelinkBoard.TLSR9518ADK80D:
return 'tlsr9518adk80d'
elif self == TelinkBoard.TLSR9528A:
return 'tlsr9528a'
elif self == TelinkBoard.TLSR9528A_RETENTION:
return 'tlsr9528a_retention'
else:
raise Exception('Unknown board type: %r' % self)

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/testdata/all_targets_linux_x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ nrf-native-posix-64-tests
qpg-qpg6105-{lock,light,shell,persistent-storage}
stm32-stm32wb5mm-dk-light
tizen-arm-{all-clusters,all-clusters-minimal,chip-tool,light,tests}[-no-ble][-no-thread][-no-wifi][-asan][-ubsan]
telink-{tlsr9518adk80d,tlsr9528a}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,resource-monitoring,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb]
telink-{tlsr9518adk80d,tlsr9528a,tlsr9528a_retention}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,resource-monitoring,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb]
openiotsdk-{shell,lock}[-mbedtls][-psa]

0 comments on commit 7e2471e

Please sign in to comment.