Comments (3)
We can probably do both? If there are .h
files in config directory, compile a single firmware bin. If there are folders there, go recursively inside each folder and build to the corresponding compiled firmware folder? 😄
from marlin-build.
Sounds great!
This project has finally put a fire under me to learn more about docker so hopefully I can contribute in future if you would like some help?
from marlin-build.
I considered modifying the script to accommodate for this, however it would increase the complexity a fair bit. Since this is a edge-case, i recommend solving it in a more static approach using Github Actions.
Create multiple GHA workflows, where you change out the monitored folders and docker volumes with sub-folders of choice. If you make changes in the sub-folder, only the corresponding firmware will be generated.
Example:
name: Build Marlin Firmware
on:
push:
branches:
- master
paths:
- 'Firmware/Configuration/Example1/**.h'
jobs:
build_and_push:
name: Compile and Push Firmware
runs-on: ubuntu-latest
env:
BOARD: STM32F103RC_btt_512K
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Compile firmware
run: |
docker run \
-u root:root \
-e BOARD \
-e UPDATE_FORCE=true \
-v $(pwd)/Firmware/Builds/Example1:/home/platformio/build \
-v $(pwd)/Firmware/Configuration/Example1:/home/platformio/CustomConfiguration \
frealmyr/marlin-build:latest
- name: Push firmware
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Compiled firmware"
git push
from marlin-build.
Related Issues (12)
- 8 bit hex files HOT 1
- problem to compile .env with personalized firmware names HOT 4
- compile on arm64 issue HOT 1
- Does custom repo work? HOT 4
- How to upgrade platformio HOT 3
- Local branch is not updated
- Add docker image HOT 1
- Logic for using branches instead of tags HOT 1
- Advanced configuration within src/ HOT 9
- Failure to upload build for new board HOT 3
- Request: Use alternative marlin repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marlin-build.