From 36a5844148941ebb36800a7e38a320b5b10d9a97 Mon Sep 17 00:00:00 2001 From: andreas Date: Sat, 2 Sep 2023 12:08:18 +0200 Subject: [PATCH] circle ci build --- .circleci/config.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 23b37cf..51ee025 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,13 @@ # Use the latest 2.1 version of CircleCI pipeline process engine. # See: https://circleci.com/docs/configuration-reference version: 2.1 - +parameters: + run_build: + type: boolean + default: false + environment: + type: string + default: "m5-atom" orbs: python: circleci/python@1.4.0 @@ -12,6 +18,8 @@ jobs: executor: python/default # Add steps to the job # See: https://circleci.com/docs/configuration-reference/#steps + environment: + steps: - checkout - run: @@ -19,11 +27,12 @@ jobs: command: "pip install --upgrade platformio" - run: name: "build" - command: "pip run" + command: "pip run -e << pipeline.parameters.environment >>" # Orchestrate jobs using workflows # See: https://circleci.com/docs/configuration-reference/#workflows workflows: build-workflow: + when: << pipeline.parameters.run_build >> jobs: - pio-build