debugging 25
Build / build (push) Failing after 4s

This commit is contained in:
2026-09-29 20:39:12 +02:00
parent 35602fb877
commit 2537dba07a
2 changed files with 25 additions and 19 deletions
+24 -17
View File
@@ -5,40 +5,47 @@ branding:
icon: wifi icon: wifi
inputs: inputs:
path: path:
description: "Relative path under $GITHUB_WORKSPACE to place the repository" description: "Relative path under $GITHUB_WORKSPACE containing the project"
default: "" default: "."
required: false required: false
esp_idf_version: esp_idf_version:
description: "Version of ESP-IDF docker image to use"
default: "latest" default: "latest"
required: false required: false
esp_idf_docker_image: esp_idf_docker_image:
description: "Docker Repository to obtain the ESP-IDF image from"
default: "espressif/idf" default: "espressif/idf"
required: false required: false
extra_docker_args: extra_docker_args:
description: "Additional arguments to pass to the docker run command"
default: "" default: ""
required: false required: false
target: target:
description: "ESP32 variant to build for"
default: "esp32" default: "esp32"
required: false required: false
command: command:
description: "Command to run inside the docker container (default: builds the project)"
default: "idf.py build" default: "idf.py build"
required: false required: false
runs: runs:
using: "composite" using: "composite"
steps: steps:
- run: | - shell: bash
export IDF_TARGET=$(echo "${{ inputs.target }}" | tr '[:upper:]' '[:lower:]' | tr -d '_-') env:
docker run -t \ INPUT_PATH: ${{ inputs.path }}
-e IDF_TARGET="${IDF_TARGET}" \ INPUT_TARGET: ${{ inputs.target }}
-v ${GITHUB_WORKSPACE}:/app/${{ github.repository }} \ INPUT_VERSION: ${{ inputs.esp_idf_version }}
-w /app/${{ github.repository }}/${{ inputs.path }} \ INPUT_IMAGE: ${{ inputs.esp_idf_docker_image }}
${{ inputs.extra_docker_args }} \ INPUT_EXTRA: ${{ inputs.extra_docker_args }}
${{ inputs.esp_idf_docker_image }}:${{ inputs.esp_idf_version }} \ INPUT_COMMAND: ${{ inputs.command }}
/bin/bash -c 'git config --global --add safe.directory "*" && ${{ inputs.command }}' run: |
shell: bash set -euo pipefail
IDF_TARGET=$(echo "$INPUT_TARGET" | tr '[:upper:]' '[:lower:]' | tr -d '_-')
echo "Workspace: $GITHUB_WORKSPACE"
ls -la "$GITHUB_WORKSPACE" # sanity check: is the checkout actually there?
docker run --rm -t \
-e IDF_TARGET="$IDF_TARGET" \
-v "$GITHUB_WORKSPACE":/project \
-w "/project/${INPUT_PATH}" \
$INPUT_EXTRA \
"${INPUT_IMAGE}:${INPUT_VERSION}" \
/bin/bash -c "git config --global --add safe.directory '*' && ${INPUT_COMMAND}"
+1 -2
View File
@@ -13,11 +13,10 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: 'recursive' submodules: 'recursive'
path: "code"
- run: ls -la ${GITHUB_WORKSPACE}/code - run: ls -la ${GITHUB_WORKSPACE}/code
- run: find ${GITHUB_WORKSPACE}/code -maxdepth 2 -name CMakeLists.txt - run: find ${GITHUB_WORKSPACE}/code -maxdepth 2 -name CMakeLists.txt
- name: esp-idf build - name: esp-idf build
uses: ./code/.gitea/actions/esp-idf-ci-action uses: .gitea/actions/esp-idf-ci-action
with: with:
esp_idf_version: v6.0.2 esp_idf_version: v6.0.2
target: esp32c6 target: esp32c6