Skip to content

Commit

Permalink
Adding support for GitHub labeler, fixes project-chip#1008 (project-c…
Browse files Browse the repository at this point in the history
…hip#1693)

* Initial checkin

* Adding size

* Updating copyrights, and moving to labeller

* Run every few minutes, doesn't work on PRs sadly

* Fixing naming

* Removing size, won't work on forks
  • Loading branch information
woody-apple authored Jul 23, 2020
1 parent d5cbe86 commit c8541ef
Show file tree
Hide file tree
Showing 9 changed files with 300 additions and 27 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

ARG BUILD_VERSION

# All tools required for compilation belong in chip-build, forms "truth" for CHIP build tooling
Expand Down
135 changes: 135 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# 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.

############################################################
# Top Level Labels
############################################################
repo:
- ./*

############################################################
# Examples
############################################################
examples:
- examples/*

############################################################
# Documentation
############################################################
documentation:
- docs/*

############################################################
# Tools + Development Items
############################################################
scripts:
- scripts/*

integrations:
- integrations/*

vscode:
- .vscode
- .devcontainer

gn:
- gn/*

github:
- .github

workflows:
- .github/workflows/*

tools:
- tools/*

############################################################
# Source Code
############################################################
qr code:
- src/qrcode/*

lwip:
- src/lwip/*

inet:
- src/inet/*

config:
- config/*

lib:
- src/lib/*

crypto:
- src/crypto/*

controller:
- src/controller/*

ble:
- src/ble/*

android:
- src/android/*

app:
- src/app/*

transport:
- src/transport/*

system:
- src/system/*

setup payload:
- src/setup_payload/*

############################################################
# Platforms
############################################################
platform:
- src/platform/*

darwin:
- src/platform/Darwin/*
- src/darwin/*

efr32:
- src/platform/EFR32/*

esp32:
- src/platform/ESP32/*

freeRTOS:
- src/platform/FreeRTOS/*

k32w:
- src/platform/K32W/*

linux:
- src/platform/Linux/*

nrf5:
- src/platform/nRF5/*

nrf connect:
- src/platform/nrfconnect/*

openthread:
- src/platform/openthread/*

zephyr:
- src/platform/Zephyr/*
19 changes: 15 additions & 4 deletions .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# 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.

name: Bloat Check
on:
schedule:
- cron: '*/5 * * * *'

- cron: "*/5 * * * *"

jobs:
pull_request_update:
Expand All @@ -22,5 +35,3 @@ jobs:
scripts/helpers/bloat_check.py \
--github-repository project-chip/connectedhomeip \
--github-api-token "${{ secrets.GITHUB_TOKEN }}"
17 changes: 15 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

name: Builds

on:
Expand Down Expand Up @@ -25,7 +39,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
submodules: true
- name: Bootstrap
run: |
case $BUILD_TYPE in
Expand Down Expand Up @@ -75,4 +89,3 @@ jobs:
# - name: Upload Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: bash <(curl -s https://codecov.io/bash)

38 changes: 29 additions & 9 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

name: Examples

on:
Expand All @@ -24,8 +38,8 @@ jobs:
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
fetch-depth: 0
submodules: true
- name: Build example Echo App
run: scripts/examples/esp_echo_app.sh
- name: Copy aside build products
Expand All @@ -46,7 +60,9 @@ jobs:
- name: Uploading Binaries
uses: actions/upload-artifact@v1
with:
name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }}
name:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build

nrf:
Expand All @@ -68,8 +84,8 @@ jobs:
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
fetch-depth: 0
submodules: true
- name: Build example nRF5 Lock App
run: scripts/examples/nrf_lock_app.sh
- name: Copy aside build products
Expand All @@ -90,7 +106,9 @@ jobs:
- name: Uploading Binaries
uses: actions/upload-artifact@v1
with:
name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }}
name:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build

linux-standalone:
Expand All @@ -112,8 +130,8 @@ jobs:
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
fetch-depth: 0
submodules: true
- name: Build example Standalone Echo Client
run: scripts/examples/standalone_echo_client.sh
- name: Build example Standalone Shell
Expand All @@ -136,5 +154,7 @@ jobs:
- name: Uploading Binaries
uses: actions/upload-artifact@v1
with:
name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }}
name:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build
14 changes: 14 additions & 0 deletions .github/workflows/gn_build.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

name: GN Builds

on:
Expand Down
46 changes: 36 additions & 10 deletions .github/workflows/gn_examples.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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.

name: GN Examples

on:
Expand Down Expand Up @@ -30,9 +44,13 @@ jobs:
- name: Bootstrap
run: scripts/build/gn_bootstrap.sh
- name: Build example nRF5 Lock App
run: scripts/examples/gn_nrf_example.sh examples/lock-app/nrf5 out/lock_app_debug
run:
scripts/examples/gn_nrf_example.sh examples/lock-app/nrf5
out/lock_app_debug
- name: Build example nRF5 Lighting App
run: scripts/examples/gn_nrf_example.sh examples/lighting-app/nrf5 out/lighting_app_debug
run:
scripts/examples/gn_nrf_example.sh examples/lighting-app/nrf5
out/lighting_app_debug
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
Expand All @@ -43,10 +61,12 @@ jobs:
- name: Uploading Binaries
uses: actions/upload-artifact@v2
with:
name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }}
name:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: |
out/lock_app_debug/chip-nrf52840-lock-example
out/lighting_app_debug/chip-nrf52840-lighting-example
out/lock_app_debug/chip-nrf52840-lock-example
out/lighting_app_debug/chip-nrf52840-lighting-example
linux-standalone:
name: Linux Standalone
Expand All @@ -73,9 +93,13 @@ jobs:
- name: Bootstrap
run: scripts/build/gn_bootstrap.sh
- name: Build example Standalone Echo Client
run: scripts/examples/gn_build_example.sh examples/chip-tool out/chip_tool_debug
run:
scripts/examples/gn_build_example.sh examples/chip-tool
out/chip_tool_debug
- name: Build example Standalone Shell
run: scripts/examples/gn_build_example.sh examples/shell out/shell_debug
run:
scripts/examples/gn_build_example.sh examples/shell
out/shell_debug
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
Expand All @@ -86,7 +110,9 @@ jobs:
- name: Uploading Binaries
uses: actions/upload-artifact@v2
with:
name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }}
name:
${{ env.BUILD_TYPE }}-example-build-${{
steps.outsuffix.outputs.value }}
path: |
out/chip_tool_debug/chip-standalone-demo
out/shell_debug/chip-shell
out/chip_tool_debug/chip-standalone-demo
out/shell_debug/chip-shell
Loading

0 comments on commit c8541ef

Please sign in to comment.