Files
hermes-agent/scripts/ci/linux_bundle_shell.sh
BearHuddleston 39c1fea47d fix(ci): select the Linux bundle userland outside the Actions shell field
Actions rejects matrix expressions in step.shell before any job starts. Give the four shared steps a literal shell and select their existing x64 container or native arm64 Bash via the matrix label in job env.
2026-11-19 02:35:54 -06:00

9 lines
407 B
Bash

#!/usr/bin/env bash
# Actions accepts matrix expressions in job env, not in a step's shell field.
set -euo pipefail
case "${LINUX_BUNDLE_TARGET:?missing Linux bundle target}" in
linux-x64) exec bash scripts/ci/linux_x64_userland.sh "$1" "$2" ;;
linux-arm64) exec bash --noprofile --norc -eo pipefail "$2" ;;
*) printf 'Unsupported Linux bundle target: %s\n' "$LINUX_BUNDLE_TARGET" >&2; exit 2 ;;
esac