Files
esphome/.github/workflows/zz-windows-spaces-probe.yml

50 lines
1.4 KiB
YAML

# Temporary workflow: proves the ESP-IDF spaced-path compile bug on Windows.
# Removed in the final commit of this PR; must never land on dev.
name: zz Windows spaced-path probe (temporary)
on:
push:
branches:
- esp32-idf-spaces-path-fix
workflow_dispatch:
permissions:
contents: read
jobs:
esp-idf-spaced-path:
name: ESP-IDF compile from a path with a space
runs-on: windows-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.11"
- name: Install esphome
shell: bash
run: |
python -m pip install -U pip
pip install -e .
- name: Write a minimal ESP-IDF config into a directory with a space
shell: bash
run: |
mkdir -p "first last"
cat > "first last/probe.yaml" <<'EOF'
esphome:
name: spaces-probe
esp32:
board: esp32dev
framework:
type: esp-idf
logger:
EOF
echo "Config dir (note the space):"
pwd
ls -la "first last"
- name: Compile from the spaced path
shell: bash
run: |
esphome compile "first last/probe.yaml"