From 68b7d931dd1a5a70f140b1f89e59b15229163730 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 1 Dec 2021 12:32:34 -0500 Subject: [PATCH] Skip the "Set up environment for size reports" step in "act". This step doesn't work in the "act" environment (which makes the whole CI job fail), and it's not needed anyway since we don't upload size reports in that environment. --- .github/workflows/examples-efr32.yaml | 1 + .github/workflows/examples-esp32.yaml | 1 + .github/workflows/examples-infineon.yaml | 1 + .github/workflows/examples-k32w.yaml | 1 + .github/workflows/examples-linux-standalone.yaml | 1 + .github/workflows/examples-mbed.yaml | 1 + .github/workflows/examples-nrfconnect.yaml | 1 + .github/workflows/examples-qpg.yaml | 1 + .github/workflows/examples-telink.yaml | 1 + scripts/tools/memory/gh_sizes_environment.py | 1 + 10 files changed, 10 insertions(+) diff --git a/.github/workflows/examples-efr32.yaml b/.github/workflows/examples-efr32.yaml index cd24c6092d0fde..ccdee07ab280b5 100644 --- a/.github/workflows/examples-efr32.yaml +++ b/.github/workflows/examples-efr32.yaml @@ -45,6 +45,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-esp32.yaml b/.github/workflows/examples-esp32.yaml index fe59c53d8016c8..33fb80929f5ff0 100644 --- a/.github/workflows/examples-esp32.yaml +++ b/.github/workflows/examples-esp32.yaml @@ -46,6 +46,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index 3c709c3354aa0b..75a2ccbfd91818 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -41,6 +41,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-k32w.yaml b/.github/workflows/examples-k32w.yaml index 22676e6b0708e8..8fc2a81215111f 100644 --- a/.github/workflows/examples-k32w.yaml +++ b/.github/workflows/examples-k32w.yaml @@ -44,6 +44,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-linux-standalone.yaml b/.github/workflows/examples-linux-standalone.yaml index f6593e5d7a5886..e8977cad8382eb 100644 --- a/.github/workflows/examples-linux-standalone.yaml +++ b/.github/workflows/examples-linux-standalone.yaml @@ -45,6 +45,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-mbed.yaml b/.github/workflows/examples-mbed.yaml index ed5932aad9f5c0..03dba88839f9d3 100644 --- a/.github/workflows/examples-mbed.yaml +++ b/.github/workflows/examples-mbed.yaml @@ -48,6 +48,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-nrfconnect.yaml b/.github/workflows/examples-nrfconnect.yaml index 63bd1c210c6238..4e1ba6dd89510a 100644 --- a/.github/workflows/examples-nrfconnect.yaml +++ b/.github/workflows/examples-nrfconnect.yaml @@ -45,6 +45,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-qpg.yaml b/.github/workflows/examples-qpg.yaml index 486f774c7c79d0..724511050e74a1 100644 --- a/.github/workflows/examples-qpg.yaml +++ b/.github/workflows/examples-qpg.yaml @@ -44,6 +44,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/workflows/examples-telink.yaml b/.github/workflows/examples-telink.yaml index b24da206d6848d..6a372930a42146 100644 --- a/.github/workflows/examples-telink.yaml +++ b/.github/workflows/examples-telink.yaml @@ -43,6 +43,7 @@ jobs: submodules: true - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/scripts/tools/memory/gh_sizes_environment.py b/scripts/tools/memory/gh_sizes_environment.py index bca21b5fa4356f..4b38a53e12c2db 100755 --- a/scripts/tools/memory/gh_sizes_environment.py +++ b/scripts/tools/memory/gh_sizes_environment.py @@ -8,6 +8,7 @@ ``` - name: Set up environment for size reports + if: ${{ !env.ACT }} env: GH_CONTEXT: ${{ toJson(github) }} run: gh_sizes_environment.py "${GH_CONTEXT}"