ci/cd: build all three language variants #10

Merged
Burer merged 2 commits from template-lang into main 2026-07-20 05:22:12 +00:00
2 Commits
Author SHA1 Message Date
Taldariner 9e1f4ba492 ci: build the Spanish variant too
Build C-- programs / Build (LANG_ENG) (pull_request) Successful in 19s
Build C-- programs / Build (LANG_RUS) (pull_request) Successful in 21s
Build C-- programs / Build (LANG_SPA) (pull_request) Successful in 21s
misc/ and tmpdisk/ map es_ES to LANG_SPA in their Tupfile.lua, so the OS
compiles those sources with a define this build never passed. Their
Spanish branches went untested here while shipping in the es_ES image.
2026-07-20 08:18:55 +03:00
Taldariner 282fd2ffe9 template: define C_LANG before the rule uses it
Every other Tupfile.lua here sets C_LANG from the LANG config before
interpolating it; this one, added with the template program, did not. The
gap is invisible to our CI because build.sh reads the rule text and
supplies /D=LANG_* itself, so the rule has never been through tup - which
is what the OS build uses, and where an undefined variable would land in
the compiler command line.

Take the three-branch form from misc/ and tmpdisk/ rather than the shorter
one most programs use: this is the file people copy to start a new program,
so it should not teach them to drop Spanish.
2026-07-20 08:18:55 +03:00