Files
KXKM_Batterie_Parallelator/.github/workflows/esp-idf-ci.yml
T
L'électron rare f55093d6fe
ESP-IDF CI / Host Tests (Unity) (push) Successful in 1m8s
CI / firmware-native (push) Successful in 2m57s
Rust Protection Tests / Cargo test (host) (push) Failing after 3m21s
ESP-IDF CI / ESP-IDF Build (v5.4) (push) Failing after 6m55s
ESP-IDF CI / Memory Budget Gate (push) Has been skipped
qa-cicd-environments / qa-kxkm-s3-build (push) Successful in 8m53s
qa-cicd-environments / qa-sim-host (push) Successful in 2m2s
qa-cicd-environments / qa-kxkm-s3-memory-budget (push) Successful in 11m17s
chore: import KXKM Batterie Parallelator
Context: the project archive (KXKM_Batterie_Parallelator-main) had
no git history locally; a fresh repository is needed to host it on
git.saillant.cc (electron/KXKM_Batterie_Parallelator).

Approach: initialize a new repo on branch main, stage the archive
content, and harden .gitignore before the first commit.

Changes:
- Import the full project tree: firmware/, firmware-idf/,
  firmware-rs/, iosApp/, kxkm-bmu-app/, kxkm-api/, hardware/,
  docs/, specs/, scripts/, models/, tests/
- Keep project dotfiles tracked despite the trailing '.*' ignore
  rule: .github/, .claude/, .superpowers/, .gitattributes,
  .markdownlint.json
- Extend .gitignore: firmware/src/credentials.h (local secrets,
  template kept), kxkm-bmu-app/**/build/ (66 MB compiled iOS
  framework), .remember/ (session data)

Impact: the project can now be maintained on the self-hosted Gitea
forge with a clean, secret-free initial history.
2026-07-04 12:32:28 +02:00

78 lines
2.2 KiB
YAML

name: ESP-IDF CI
on:
push:
branches: [main, victron]
paths: ['firmware-idf/**', '.github/workflows/esp-idf-ci.yml']
pull_request:
paths: ['firmware-idf/**', '.github/workflows/esp-idf-ci.yml']
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
host-tests:
name: Host Tests (Unity)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Run host tests
run: |
cd firmware-idf/test
make all
build:
name: ESP-IDF Build (v5.4)
runs-on: ubuntu-latest
container: espressif/idf:v5.4
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build firmware
shell: bash
run: |
# Le conteneur espressif/idf fournit idf.py mais l'entrypoint qui
# source l'env est court-circuité par les run-steps GitHub Actions :
# il faut sourcer export.sh nous-mêmes (sinon "idf.py: not found").
. "${IDF_PATH}/export.sh"
cd firmware-idf
idf.py set-target esp32s3
idf.py build
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: kxkm-bmu-firmware
path: |
firmware-idf/build/kxkm-bmu.bin
firmware-idf/build/bootloader/bootloader.bin
firmware-idf/build/partition_table/partition-table.bin
memory-budget:
name: Memory Budget Gate
needs: build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: kxkm-bmu-firmware
path: firmware-idf/build/
- name: Check binary size
run: |
BIN="firmware-idf/build/kxkm-bmu.bin"
PARTITION_SIZE=$((0x200000))
BIN_SIZE=$(stat -c%s "$BIN")
PERCENT=$(( BIN_SIZE * 100 / PARTITION_SIZE ))
echo "Binary: $BIN_SIZE bytes ($PERCENT% of 2MB partition)"
if [ "$PERCENT" -gt 85 ]; then
echo "::error::Flash usage ${PERCENT}% exceeds 85% threshold"
exit 1
fi
echo "Flash: ${PERCENT}% (max 85%)"