Skip to content

Commit 1c1efa7

Browse files
committed
[nrf noup] Build OTA Provider for Linux in release_tools
Build OTA Provider for Linux in release_tools workflow. Also, disable debug symbols for chip-tool binaries. Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
1 parent 74e68fb commit 1c1efa7

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/release_tools.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,30 @@ jobs:
4747
uses: actions/checkout@v2
4848
with:
4949
ref: "${{ github.event.inputs.commit }}"
50-
submodules: true
50+
- name: Checkout submodules
51+
run: scripts/checkout_submodules.py --shallow --platform android linux
5152
- name: Bootstrap
5253
timeout-minutes: 10
5354
run: scripts/build/gn_bootstrap.sh
54-
- name: Install Python CHIP Tool dependencies
55+
- name: Install CHIP Tool dependencies
5556
timeout-minutes: 10
5657
run: |
5758
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc) main restricted" > /etc/apt/sources.list.d/arm64.list
5859
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc)-updates main restricted" >> /etc/apt/sources.list.d/arm64.list
5960
apt update
6061
apt install -y --no-install-recommends -o APT::Immediate-Configure=false g++-aarch64-linux-gnu libgirepository1.0-dev
6162
dpkg --add-architecture arm64
62-
apt install -y --no-install-recommends -o APT::Immediate-Configure=false libavahi-client-dev:arm64 libglib2.0-dev:arm64 libssl-dev:arm64
63+
apt install -y --no-install-recommends -o APT::Immediate-Configure=false libavahi-client-dev:arm64 libglib2.0-dev:arm64 libssl-dev:arm64 libreadline-dev:arm64
6364
- name: Build x64 CHIP Tool with debug logs enabled
6465
timeout-minutes: 10
6566
run: |
66-
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_debug --args='chip_mdns=\"platform\"'"
67+
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_debug --args='chip_mdns=\"platform\" symbol_level=0'"
6768
scripts/run_in_build_env.sh "ninja -C out/chiptool_x64_debug chip-tool"
6869
mv out/chiptool_x64_debug/chip-tool out/chiptool_x64_debug/chip-tool-debug
6970
- name: Build x64 CHIP Tool with debug logs disabled
7071
timeout-minutes: 10
7172
run: |
72-
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_release --args='chip_mdns=\"platform\" chip_detail_logging=false'"
73+
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_release --args='chip_mdns=\"platform\" chip_detail_logging=false symbol_level=0'"
7374
scripts/run_in_build_env.sh "ninja -C out/chiptool_x64_release chip-tool"
7475
mv out/chiptool_x64_release/chip-tool out/chiptool_x64_release/chip-tool-release
7576
- name: Build arm64 CHIP Tool with debug logs enabled
@@ -80,7 +81,8 @@ jobs:
8081
target_cc=\"aarch64-linux-gnu-gcc\"
8182
target_cxx=\"aarch64-linux-gnu-g++\"
8283
target_ar=\"aarch64-linux-gnu-ar\"
83-
target_cpu=\"arm64\"'"
84+
target_cpu=\"arm64\"
85+
symbol_level=0'"
8486
scripts/run_in_build_env.sh "ninja -C out/chiptool_arm64_debug chip-tool"
8587
mv out/chiptool_arm64_debug/chip-tool out/chiptool_arm64_debug/chip-tool-debug
8688
- name: Build arm64 CHIP Tool with debug logs disabled
@@ -92,9 +94,16 @@ jobs:
9294
target_cc=\"aarch64-linux-gnu-gcc\"
9395
target_cxx=\"aarch64-linux-gnu-g++\"
9496
target_ar=\"aarch64-linux-gnu-ar\"
95-
target_cpu=\"arm64\"'"
97+
target_cpu=\"arm64\"
98+
symbol_level=0'"
9699
scripts/run_in_build_env.sh "ninja -C out/chiptool_arm64_release chip-tool"
97100
mv out/chiptool_arm64_release/chip-tool out/chiptool_arm64_release/chip-tool-release
101+
- name: Build x64 OTA Provider
102+
timeout-minutes: 10
103+
run: |
104+
scripts/run_in_build_env.sh "gn gen out/chipotaprovider_x64 --args='symbol_level=0' --root=examples/ota-provider-app/linux"
105+
scripts/run_in_build_env.sh "ninja -C out/chipotaprovider_x64 chip-ota-provider-app"
106+
mv out/chipotaprovider_x64/chip-ota-provider-app /tmp/output_binaries/chip-ota-provider-app-linux_x64
98107
- name: Create zip files for CHIP Tool debug and release packages
99108
timeout-minutes: 10
100109
run: |

0 commit comments

Comments
 (0)