fix(ci): derive build-all platform/arch in-container, not from CI env
Crow cannot interpolate the workflow-level OS/OS_VERSION form variables inside an environment: block (only matrix variables work there), so exporting them broke pipeline parsing with "unable to parse variable name". Instead, derive platform + arch inside build-all.R from the running container, mirroring bincraft's own codename -> platform mapping and machine -> arch detection. This keeps the already-built dedup pre-filter effective without depending on CI-injected env vars, and degrades to a length-1 NA (querying nothing) for an unmapped codename rather than crashing.
This commit is contained in:
parent
0e484a8b37
commit
bc2f6f1517
1 changed files with 25 additions and 9 deletions
|
|
@ -90,13 +90,6 @@ steps:
|
|||
from_secret: GITHUB_PAT
|
||||
# normal env vars
|
||||
GIT_USER: pat-s
|
||||
# Export the platform selectors as runtime env vars. They are otherwise
|
||||
# only available for ${...} interpolation (image/volume), so build-all.R's
|
||||
# `Sys.getenv("OS")/("OS_VERSION")/("ARCH")` would be empty and its
|
||||
# already-built dedup query would match platform "-" and skip nothing.
|
||||
OS: ${OS}
|
||||
OS_VERSION: ${OS_VERSION}
|
||||
ARCH: ${ARCH}
|
||||
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
|
||||
R_PKG_CACHE_DIR: ${R_PKG_CACHE_DIR}
|
||||
R_LIBS_USER: /mnt/cache/R-pkgs
|
||||
|
|
|
|||
Loading…
Reference in a new issue