Skip to content

Commit

Permalink
Workaround not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed Jun 26, 2023
1 parent 1a28016 commit b8888e1
Show file tree
Hide file tree
Showing 36 changed files with 122 additions and 180 deletions.
15 changes: 15 additions & 0 deletions .github/actions/setup-size-reports/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Setup size reports
description: Setup size reports
inputs:
gh-context:
description: "GH Context"
required: true

runs:
using: "composite"
steps:
- name: Set up environment for size reports
shell: bash
env:
GH_CONTEXT: ${{ inputs.gh-context }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
17 changes: 17 additions & 0 deletions .github/actions/upload-size-reports/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: upload-size-reports
description: upload-size-reports
inputs:
platform-name:
description: "Platform name Name"
required: true

runs:
using: "composite"
steps:
- name: Uploading Size Reports
uses: actions/upload-artifact@v3
if: ${{ !env.ACT }}
with:
name: Size,${{ inputs.platform-name }}-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
/tmp/bloat_reports/
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
build_linux_gcc_debug:
name: Build on Linux (gcc_debug)
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
chef_linux:
name: Chef - Linux CI Examples
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cirque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
cirque:
name: Cirque
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/darwin-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
test_suites_chip_tool_darwin:
name: Test Suites - Darwin
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
darwin:
name: Build Darwin
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/examples-ameba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
ameba:
name: Ameba
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/examples-asr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
asr:
name: ASR
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/examples-bouffalolab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3

jobs:
bouffalolab:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/examples-cc13x2x7_26x2x7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ concurrency:
cancel-in-progress: true
env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
cc26x2x7:
name: cc26x2x7
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/examples-cc32xx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
cc32xx:
name: cc32xx
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3

jobs:
efr32:
Expand All @@ -52,10 +50,10 @@ jobs:
platform: silabs_docker

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
env:
GH_CONTEXT: ${{ toJson(github) }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
with:
gh-context: ${{ toJson(github) }}

# - name: Test SLC gen
# timeout-minutes: 30
Expand Down Expand Up @@ -105,9 +103,7 @@ jobs:
- name: Clean out build output
run: rm -rf ./out
- name: Uploading Size Reports
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
name: Size,EFR32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
/tmp/bloat_reports/
platform-name: EFR32
15 changes: 6 additions & 9 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
esp32:
name: ESP32
Expand All @@ -49,10 +47,10 @@ jobs:
platform: esp32

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
env:
GH_CONTEXT: ${{ toJson(github) }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
with:
gh-context: ${{ toJson(github) }}

- name: Build some M5Stack variations
run: |
Expand Down Expand Up @@ -117,11 +115,10 @@ jobs:
run: scripts/examples/esp_example.sh lock-app sdkconfig.defaults

- name: Uploading Size Reports
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
name: Size,ESP32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: /tmp/bloat_reports/
platform-name: ESP32

esp32_1:
name: ESP32_1
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/examples-infineon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
infineon:
name: Infineon examples building
Expand All @@ -49,10 +47,10 @@ jobs:
platform: infineon

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
env:
GH_CONTEXT: ${{ toJson(github) }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
with:
gh-context: ${{ toJson(github) }}

- name: Build PSoC6 lock-app example
run: |
Expand Down Expand Up @@ -143,9 +141,7 @@ jobs:
out/artifacts/cyw30739-cyw930739m2evb_01-switch/chip-cyw30739-light-switch-example.elf \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
name: Size,Infineon-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
/tmp/bloat_reports/
platform-name: Infineon
16 changes: 6 additions & 10 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
k32w:
name: K32W
Expand All @@ -51,10 +49,10 @@ jobs:
platform: k32w0

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
env:
GH_CONTEXT: ${{ toJson(github) }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
with:
gh-context: ${{ toJson(github) }}

- name: Build examples
run: |
Expand Down Expand Up @@ -88,9 +86,7 @@ jobs:
out/artifacts/k32w-contact-crypto-platform-tokenizer/chip-k32w0x-contact-example \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
name: Size,K32W-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
/tmp/bloat_reports/
platform-name: K32W
16 changes: 6 additions & 10 deletions .github/workflows/examples-linux-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
arm_crosscompile:
name: Linux ARM Cross compile
Expand All @@ -49,10 +47,10 @@ jobs:
platform: linux

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
env:
GH_CONTEXT: ${{ toJson(github) }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
with:
gh-context: ${{ toJson(github) }}

- name: Build Some samples
run: |
Expand Down Expand Up @@ -80,9 +78,7 @@ jobs:
out/linux-arm64-thermostat-no-ble-clang/thermostat-app \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
name: Size,Linux-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
/tmp/bloat_reports/
platform-name: Linux
4 changes: 1 addition & 3 deletions .github/workflows/examples-linux-imx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
imx:
name: Linux i.MX Build
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ concurrency:

env:
CHIP_NO_LOG_TIMESTAMPS: true
# XXX: Workaround for https://github.com/actions/cache/issues/1141
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3


jobs:
linux_standalone:
name: Linux Standalone
Expand All @@ -49,10 +47,10 @@ jobs:
platform: linux

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
env:
GH_CONTEXT: ${{ toJson(github) }}
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
with:
gh-context: ${{ toJson(github) }}

- name: Build Standalone cert tool
run: |
Expand Down Expand Up @@ -183,9 +181,7 @@ jobs:
--target linux-x64-contact-sensor-no-ble-with-ui \
build"
- name: Uploading Size Reports
uses: actions/upload-artifact@v3
uses: ./.github/actions/upload-size-reports
if: ${{ !env.ACT }}
with:
name: Size,Linux-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
path: |
/tmp/bloat_reports/
platform-name: Linux-Standalone
Loading

0 comments on commit b8888e1

Please sign in to comment.