From abfc2735bac983b6f092dabf2fff7f3f7b7a36f2 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 8 Jun 2023 22:48:04 +0200 Subject: [PATCH] Add separate property to platformio.ini to control the environments built by github actions This is now independent of the default_envs which also affects local development --- .github/workflows/build.yml | 2 +- platformio.ini | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aecf1a64f..d891a86bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: - name: Get default environments id: envs run: | - echo "environments=$(pio project config --json-output | jq -cr '.[0][1][0][1]')" >> $GITHUB_OUTPUT + echo "environments=$(pio project config --json-output | jq -cr '.[1][1][0][1]|split(",")')" >> $GITHUB_OUTPUT outputs: environments: ${{ steps.envs.outputs.environments }} diff --git a/platformio.ini b/platformio.ini index 18e3cb893..ae2a623a2 100644 --- a/platformio.ini +++ b/platformio.ini @@ -14,6 +14,10 @@ extra_configs = platformio_override.ini [env] +; Make sure to NOT add any spaces in the custom_ci_action property +; (also the position in the file is important) +custom_ci_action = generic + framework = arduino platform = espressif32@6.3.1