.github/workflows/build.yml aktualisiert

This commit is contained in:
2025-07-04 11:00:10 +02:00
parent da8b21fda9
commit fb4e4d2bb5

View File

@@ -1,21 +1,24 @@
name: Build PlatformIO with Docker name: PlatformIO CI
on: on: [push]
push:
branches: [ main ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - uses: actions/checkout@v4
uses: actions/checkout@v3 - uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build with PlatformIO (Docker) - name: Build PlatformIO Project
run: | run: pio run
docker run --rm \
-v "${{ github.workspace }}:/workspace/reptil1990/AquaMasterMQTT" \
-w /workspace/reptil1990/AquaMasterMQTT \
-u root \
sglahn/platformio-core:latest run