Skip to content

Commit

Permalink
[nrf noup] Build OTA Provider for Linux in release_tools
Browse files Browse the repository at this point in the history
Build OTA Provider for Linux in release_tools workflow.
Also, disable debug symbols for chip-tool binaries.

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic committed Aug 2, 2022
1 parent 74e68fb commit 1c1efa7
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/release_tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,30 @@ jobs:
uses: actions/checkout@v2
with:
ref: "${{ github.event.inputs.commit }}"
submodules: true
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform android linux
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
- name: Install Python CHIP Tool dependencies
- name: Install CHIP Tool dependencies
timeout-minutes: 10
run: |
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc) main restricted" > /etc/apt/sources.list.d/arm64.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc)-updates main restricted" >> /etc/apt/sources.list.d/arm64.list
apt update
apt install -y --no-install-recommends -o APT::Immediate-Configure=false g++-aarch64-linux-gnu libgirepository1.0-dev
dpkg --add-architecture arm64
apt install -y --no-install-recommends -o APT::Immediate-Configure=false libavahi-client-dev:arm64 libglib2.0-dev:arm64 libssl-dev:arm64
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
- name: Build x64 CHIP Tool with debug logs enabled
timeout-minutes: 10
run: |
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_debug --args='chip_mdns=\"platform\"'"
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_debug --args='chip_mdns=\"platform\" symbol_level=0'"
scripts/run_in_build_env.sh "ninja -C out/chiptool_x64_debug chip-tool"
mv out/chiptool_x64_debug/chip-tool out/chiptool_x64_debug/chip-tool-debug
- name: Build x64 CHIP Tool with debug logs disabled
timeout-minutes: 10
run: |
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_release --args='chip_mdns=\"platform\" chip_detail_logging=false'"
scripts/run_in_build_env.sh "gn gen out/chiptool_x64_release --args='chip_mdns=\"platform\" chip_detail_logging=false symbol_level=0'"
scripts/run_in_build_env.sh "ninja -C out/chiptool_x64_release chip-tool"
mv out/chiptool_x64_release/chip-tool out/chiptool_x64_release/chip-tool-release
- name: Build arm64 CHIP Tool with debug logs enabled
Expand All @@ -80,7 +81,8 @@ jobs:
target_cc=\"aarch64-linux-gnu-gcc\"
target_cxx=\"aarch64-linux-gnu-g++\"
target_ar=\"aarch64-linux-gnu-ar\"
target_cpu=\"arm64\"'"
target_cpu=\"arm64\"
symbol_level=0'"
scripts/run_in_build_env.sh "ninja -C out/chiptool_arm64_debug chip-tool"
mv out/chiptool_arm64_debug/chip-tool out/chiptool_arm64_debug/chip-tool-debug
- name: Build arm64 CHIP Tool with debug logs disabled
Expand All @@ -92,9 +94,16 @@ jobs:
target_cc=\"aarch64-linux-gnu-gcc\"
target_cxx=\"aarch64-linux-gnu-g++\"
target_ar=\"aarch64-linux-gnu-ar\"
target_cpu=\"arm64\"'"
target_cpu=\"arm64\"
symbol_level=0'"
scripts/run_in_build_env.sh "ninja -C out/chiptool_arm64_release chip-tool"
mv out/chiptool_arm64_release/chip-tool out/chiptool_arm64_release/chip-tool-release
- name: Build x64 OTA Provider
timeout-minutes: 10
run: |
scripts/run_in_build_env.sh "gn gen out/chipotaprovider_x64 --args='symbol_level=0' --root=examples/ota-provider-app/linux"
scripts/run_in_build_env.sh "ninja -C out/chipotaprovider_x64 chip-ota-provider-app"
mv out/chipotaprovider_x64/chip-ota-provider-app /tmp/output_binaries/chip-ota-provider-app-linux_x64
- name: Create zip files for CHIP Tool debug and release packages
timeout-minutes: 10
run: |
Expand Down

0 comments on commit 1c1efa7

Please sign in to comment.