yaml: fix the indentification, adapt to host only

Dieser Commit ist enthalten in:
tom committed 2026-10-19 15:02:16 +02:00
1 Ursprung 157c87fe89
Commit f16a243e3f
1 Datei geändert
+20 -12
+20 -12
Datei anzeigen
@@ -1,4 +1,4 @@
name: Automated CI Build of FoxMesh
name: Build of FoxMesh
on:
push:
@@ -22,6 +22,7 @@ jobs:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
# 1. Checkout the target branch
- name: Checkout Target branch
uses: actions/checkout@v7
@@ -43,31 +44,38 @@ jobs:
CLEAN_BRANCH=$(echo "$RAW_BRANCH" | sed 's/[^a-zA-Z0-9.\-]/_§/g' | sed 's|§|-|g' | sed 's|_||g')
echo "GIT_BRANCH=$CLEAN_BRANCH" >> $GITHUB_ENV
# 3. Set up Python environment
- name: Set up Python 3.x
uses: actions/setup-python@v7
with:
python-version: '3.x'
#3 Python alread installed
- name: Show Python Version
run: python --version
# 4. Cache global PlatformIO directories, uses a dynamic key based on platformio.ini
- name: Cache PlatformIO
uses: actions/cache@v6
with:
path: |
~/.cache/pio
~/.platformio
.platformio
.pio
key: ${{ runner.os }}-pio-${{ hashFiles('**/platformio.ini') }}
restore-keys: |
${{ runner.os }}-pio-
- name: PlatformIO in venv installieren
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --quiet --upgrade pip platformio intelhex
# Ab hier steht platformio in diesem Schritt zur Verfügung
pio --version
# Fügt den Pfad absolut dem GitHub/Gitea-Pfad hinzu:
echo "$PWD/.venv/bin" >> $GITHUB_PATH
# 5. Install PlatformIO Core and the required intelhex extension in a single, quiet command
- name: Install PlatformIO Core
run: python -m pip install --quiet --upgrade pip platformio intelhex
# - name: Install PlatformIO Core
# run: python -m pip install --quiet --upgrade pip platformio intelhex
# 6. Install ESP32 Platform SDK
- name: Install ESP32 platform
run: pio pkg install --silent --global --platform espressif32
# - name: Install ESP32 platform
# run: pio pkg install --silent --global --platform espressif32
# 7. Compile the Project
- name: Compile the Project