Skip to content

Commit

Permalink
circle ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Sep 2, 2023
1 parent 22f42be commit 63d8775
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ parameters:
default: false
environment:
type: string
default: "m5-atom"
default: "m5stack-atom"
build_flags:
type: string
default: ""
orbs:
python: circleci/[email protected]

Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 63d8775

Please sign in to comment.