circle ci build

This commit is contained in:
andreas 2023-09-02 12:20:52 +02:00
parent 22f42bed47
commit 63d877553a
1 changed files with 11 additions and 3 deletions

View File

@ -7,7 +7,10 @@ parameters:
default: false
environment:
type: string
default: "m5-atom"
default: "m5stack-atom"
build_flags:
type: string
default: ""
orbs:
python: circleci/python@1.4.0
@ -19,7 +22,7 @@ jobs:
# Add steps to the job
# See: https://circleci.com/docs/configuration-reference/#steps
environment:
PLATFORMIO_BUILD_FLAGS: << pipeline.parameters.build_flags >>
steps:
- checkout
- run:
@ -28,7 +31,12 @@ jobs:
- run:
name: "build"
command: "pio run -e << pipeline.parameters.environment >>"
- store_artifacts:
path: .pio/build/<< pipeline.parameters.environment >>/firmware.bin
destination: << pipeline.parameters.environment >>-update.bin
- store_artifacts:
path: .pio/build/<< pipeline.parameters.environment >>/<< pipeline.parameters.environment >>-all.bin
destination: << pipeline.parameters.environment >>-all.bin
# Orchestrate jobs using workflows
# See: https://circleci.com/docs/configuration-reference/#workflows
workflows: