From fb4e4d2bb579b2494ca92ed2c988a032d56bceac Mon Sep 17 00:00:00 2001 From: reptil1990 Date: Fri, 4 Jul 2025 11:00:10 +0200 Subject: [PATCH] .github/workflows/build.yml aktualisiert --- .github/workflows/build.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9975602..855a4c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,21 +1,24 @@ -name: Build PlatformIO with Docker +name: PlatformIO CI -on: - push: - branches: [ main ] +on: [push] jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - 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) - run: | - docker run --rm \ - -v "${{ github.workspace }}:/workspace/reptil1990/AquaMasterMQTT" \ - -w /workspace/reptil1990/AquaMasterMQTT \ - -u root \ - sglahn/platformio-core:latest run + - name: Build PlatformIO Project + run: pio run \ No newline at end of file