.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:
|
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
|
|
||||||
Reference in New Issue
Block a user