Skip to content

Merge branch 'main' of https://github.com/FREILab/3DPrinter_Matrix_Di… #2

Merge branch 'main' of https://github.com/FREILab/3DPrinter_Matrix_Di…

Merge branch 'main' of https://github.com/FREILab/3DPrinter_Matrix_Di… #2

Workflow file for this run

name: Build Multi-Printer Firmware
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
environment: [drucker_1, drucker_2, drucker_3] # Hier werden 3 parallele Jobs gestartet
steps:
- uses: actions/checkout@v3
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-platformio
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install PlatformIO
run: pip install -U platformio
- name: Run PlatformIO Build
run: pio run -e ${{ matrix.environment }}
env:
WIFI_SSID: ${{ secrets.WIFI_SSID }}
WIFI_PASS: ${{ secrets.WIFI_PASS }}
API_KEY_D1: ${{ secrets.API_KEY_D1 }}
API_KEY_D2: ${{ secrets.API_KEY_D2 }}
API_KEY_D3: ${{ secrets.API_KEY_D3 }}
- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: firmware-${{ matrix.environment }}
path: .pio/build/${{ matrix.environment }}/firmware.bin