circle ci build
This commit is contained in:
parent
22f42bed47
commit
63d877553a
|
@ -7,7 +7,10 @@ parameters:
|
||||||
default: false
|
default: false
|
||||||
environment:
|
environment:
|
||||||
type: string
|
type: string
|
||||||
default: "m5-atom"
|
default: "m5stack-atom"
|
||||||
|
build_flags:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
orbs:
|
orbs:
|
||||||
python: circleci/python@1.4.0
|
python: circleci/python@1.4.0
|
||||||
|
|
||||||
|
@ -19,7 +22,7 @@ jobs:
|
||||||
# Add steps to the job
|
# Add steps to the job
|
||||||
# See: https://circleci.com/docs/configuration-reference/#steps
|
# See: https://circleci.com/docs/configuration-reference/#steps
|
||||||
environment:
|
environment:
|
||||||
|
PLATFORMIO_BUILD_FLAGS: << pipeline.parameters.build_flags >>
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
@ -28,7 +31,12 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: "build"
|
name: "build"
|
||||||
command: "pio run -e << pipeline.parameters.environment >>"
|
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
|
# Orchestrate jobs using workflows
|
||||||
# See: https://circleci.com/docs/configuration-reference/#workflows
|
# See: https://circleci.com/docs/configuration-reference/#workflows
|
||||||
workflows:
|
workflows:
|
||||||
|
|
Loading…
Reference in New Issue