yaml: fix the indentification, adapt to host only
Dieser Commit ist enthalten in:
1 Ursprung
157c87fe89
Commit
f16a243e3f
1 Datei geändert
+20
-12
@@ -1,4 +1,4 @@
|
|||||||
name: Automated CI Build of FoxMesh
|
name: Build of FoxMesh
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- 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 "🐧 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 }}."
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
|
|
||||||
# 1. Checkout the target branch
|
# 1. Checkout the target branch
|
||||||
- name: Checkout Target branch
|
- name: Checkout Target branch
|
||||||
uses: actions/checkout@v7
|
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')
|
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
|
echo "GIT_BRANCH=$CLEAN_BRANCH" >> $GITHUB_ENV
|
||||||
|
|
||||||
# 3. Set up Python environment
|
#3 Python alread installed
|
||||||
- name: Set up Python 3.x
|
- name: Show Python Version
|
||||||
uses: actions/setup-python@v7
|
run: python --version
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
|
|
||||||
# 4. Cache global PlatformIO directories, uses a dynamic key based on platformio.ini
|
# 4. Cache global PlatformIO directories, uses a dynamic key based on platformio.ini
|
||||||
- name: Cache PlatformIO
|
- name: Cache PlatformIO
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@v6
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cache/pio
|
.platformio
|
||||||
~/.platformio
|
|
||||||
.pio
|
.pio
|
||||||
key: ${{ runner.os }}-pio-${{ hashFiles('**/platformio.ini') }}
|
key: ${{ runner.os }}-pio-${{ hashFiles('**/platformio.ini') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pio-
|
${{ 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
|
# 5. Install PlatformIO Core and the required intelhex extension in a single, quiet command
|
||||||
- name: Install PlatformIO Core
|
# - name: Install PlatformIO Core
|
||||||
run: python -m pip install --quiet --upgrade pip platformio intelhex
|
# run: python -m pip install --quiet --upgrade pip platformio intelhex
|
||||||
|
|
||||||
# 6. Install ESP32 Platform SDK
|
# 6. Install ESP32 Platform SDK
|
||||||
- name: Install ESP32 platform
|
# - name: Install ESP32 platform
|
||||||
run: pio pkg install --silent --global --platform espressif32
|
# run: pio pkg install --silent --global --platform espressif32
|
||||||
|
|
||||||
# 7. Compile the Project
|
# 7. Compile the Project
|
||||||
- name: Compile the Project
|
- name: Compile the Project
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren