From a404ae958e480bb281fbc1c487f98209d5cd2f8d Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 27 Feb 2024 12:53:01 -0500 Subject: [PATCH] Stronger enforcement of "do not allow code generation" --- .github/workflows/build.yaml | 2 ++ .github/workflows/examples-esp32.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 31a6d3827283ce..a66c0f5ede930a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -221,6 +221,7 @@ jobs: run: | ./scripts/run_in_build_env.sh "./scripts/codepregen.py ./zzz_pregenerated" mv scripts/codegen.py scripts/codegen.py.renamed + mv scripts/tools/zap/generate.py scripts/tools/zap/generate.py.renamed - name: Clean output run: rm -rf ./out - name: Build using build_examples.py (pregen) @@ -236,6 +237,7 @@ jobs: run: | rm -rf ./zzz_pregenerated mv scripts/codegen.py.renamed scripts/codegen.py + mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py - name: Run fake linux tests with build_examples run: | ./scripts/run_in_build_env.sh \ diff --git a/.github/workflows/examples-esp32.yaml b/.github/workflows/examples-esp32.yaml index d6ffcc00422ccd..2317da776e6a95 100644 --- a/.github/workflows/examples-esp32.yaml +++ b/.github/workflows/examples-esp32.yaml @@ -71,6 +71,7 @@ jobs: run: | ./scripts/run_in_build_env.sh "./scripts/codepregen.py ./zzz_pregenerated" mv scripts/codegen.py scripts/codegen.py.renamed + mv scripts/tools/zap/generate.py scripts/tools/zap/generate.py.renamed - name: Clean output run: rm -rf ./out - name: Build some M5Stack variations with pregen @@ -88,6 +89,7 @@ jobs: run: | rm -rf ./zzz_pregenerated mv scripts/codegen.py.renamed scripts/codegen.py + mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py - name: Build example All Clusters App C3 run: scripts/examples/esp_example.sh all-clusters-app sdkconfig_c3devkit.defaults - name: Copy aside build products