Skip to content

Commit

Permalink
Add separate property to platformio.ini to control the environments b…
Browse files Browse the repository at this point in the history
…uilt by github actions

This is now independent of the default_envs which also affects local development
  • Loading branch information
tbnobody committed Jun 8, 2023
1 parent 9ac1bb3 commit abfc273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [email protected]

Expand Down

0 comments on commit abfc273

Please sign in to comment.