Skip to content

Commit

Permalink
[nRF Connect] Add github workflow to verify build of the lock example (
Browse files Browse the repository at this point in the history
…project-chip#1894)

* Add nRF Connect SDK github workflow

* Docker image version 0.4.0 -> 0.4.1
  • Loading branch information
Damian-Nordic authored Jul 29, 2020
1 parent 8787541 commit 2d3fc25
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.0
image: connectedhomeip/chip-build:0.4.1

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.0
image: connectedhomeip/chip-build:0.4.1
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down
52 changes: 49 additions & 3 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-esp32:0.4.0
image: connectedhomeip/chip-build-esp32:0.4.1
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-nrf-platform:0.4.0
image: connectedhomeip/chip-build-nrf-platform:0.4.1
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand Down Expand Up @@ -111,6 +111,52 @@ jobs:
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build

nrfconnect:
name: nRF Connect SDK

env:
BUILD_TYPE: nrfconnect

runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-nrf-platform:0.4.1
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"

steps:
- name: Checkout
uses: actions/checkout@v2
# Fetch depth 0 to get all history and be able to check mergepoint for bloat report
with:
fetch-depth: 0
submodules: true
- name: Build example nRF Connect SDK Lock App
run: scripts/examples/nrfconnect_lock_app.sh
- name: Copy aside build products
run: |
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/lock-app/nrfconnect/build/zephyr/zephyr.elf \
example_binaries/$BUILD_TYPE-build/chip-nrf52840-lock-example.elf
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
with:
cond: ${{ github.event.pull_request.number == '' }}
if_true: "${{ github.sha }}"
if_false: "pull-${{ github.event.pull_request.number }}"
- name: Copy aside bloat report & binaries
run: |
cp -r example_binaries/$BUILD_TYPE-build /tmp/output_binaries/
- name: Uploading Binaries
uses: actions/upload-artifact@v1
with:
name:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build

linux-standalone:
name: Linux Standalone

Expand All @@ -120,7 +166,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.0
image: connectedhomeip/chip-build:0.4.1
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gn_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.0
image: connectedhomeip/chip-build:0.4.1
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gn_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-nrf-platform:0.4.0
image: connectedhomeip/chip-build-nrf-platform:0.4.1
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.4.0
image: connectedhomeip/chip-build:0.4.1
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"
- "/tmp/output_binaries:/tmp/output_binaries"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build-esp32-qemu:0.4.0
image: connectedhomeip/chip-build-esp32-qemu:0.4.1
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down
24 changes: 24 additions & 0 deletions scripts/examples/nrfconnect_lock_app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

#
# Copyright (c) 2020 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

set -x
[[ -n $ZEPHYR_BASE ]] && source "$ZEPHYR_BASE/zephyr-env.sh"
env

./bootstrap
west build -b nrf52840dk_nrf52840 -d examples/lock-app/nrfconnect/build examples/lock-app/nrfconnect

0 comments on commit 2d3fc25

Please sign in to comment.