.github/workflows/build.yml aktualisiert
This commit is contained in:
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user