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