Commit Graph
6 Commits
Author SHA1 Message Date
timmyhadwen 58293d12fe ci: only pass readable files to the Astable upload
A glob that matched a directory or a zero-byte file still reached curl,
which failed the whole job with exit 26 and lost the upload even though
every fab artifact had been produced. add() now requires a non-empty
regular file and logs what it skipped.
2026-08-23 18:51:11 +10:00
timmyhadwen a7ac0dbadb ci: check out submodules non-recursively
The fab pipeline needs .gitlab/configs and the two KiCad libraries, but
not kicad-ci's own nested submodules (kicad-footprint-generator,
ki-ntree) — those are footprint-generation and InvenTree tooling.
Recursive checkout pulled them and failed on an SSH gitlab.com URL
baked into older kicad-ci commits.
2026-08-23 18:06:03 +10:00
timmyhadwen 4b42299571 ci: take a read-only PAT for private submodule checkout
Gitea's per-job token is scoped to the calling repo, so cross-repo
private submodules (micromelon-kicadlibs, micromelon_3d) fail with
'Repository not found'. Callers now pass SUBMODULE_TOKEN, a PAT scoped
to read:repository, through to actions/checkout.
2026-08-23 17:58:06 +10:00
timmyhadwen 236b53a129 ci: port working pipeline from cookietronics/keeb@dev
The previous reusable used container: jobs, which cannot work on this
runner — the kicad_auto images have no Node, so actions/checkout's post
step dies with exit 127. It had never run successfully. This replaces it
with the docker-run design that keeb debugged into working, plus the
kicad10_auto bump and the artifact-path and @v3 pinning fixes.
2026-08-23 16:03:38 +10:00
Tim Hadwen cb3b65d8eb Fix extract_version: inject commit msg via env (avoid backtick $() trap)
When github.event.head_commit.message contains shell metacharacters
(backticks, $(…), etc.) the literal-interpolation form spliced the
raw text into bash and triggered command substitution. Caught by the
keeb pipeline on Gitea — a commit message with backticks crashed
extract_version in 3 seconds and the whole fab graph cascade-skipped.

Pattern matches the upload-bom env: COMMIT_MESSAGE indirection used
further down the same file. Also routed github.sha the same way so
the fallback branch doesn't accidentally re-introduce the same class
of bug.

Mirror this verbatim into hfsdesign/kicad-ci on Gitea after pushing.
2026-05-24 11:55:42 +00:00
Tim Hadwen 1beee56f5d Add Gitea Actions sibling workflow
Reusable workflow at .gitea/workflows/kibot.yml — mirrors the
GitLab-side jobs (preflight, fabrication, astable_dev/main).
Same scripts, same Astable upload contract.

GitLab CI reads /kibot-ci.yml; Gitea Actions reads
/.gitea/workflows/kibot.yml. They don't trip over each other,
so projects on either platform submodule the same kicad-ci repo
and pick up the appropriate orchestrator.

Per-project caller snippet documented in
.gitea/workflows/README.md.
2026-05-24 11:04:39 +00:00