Files
computer-playbook/.github/workflows/test-install-make.yml
T
kevinveenbirkenbachandClaude Opus 4.8 9deac861e6 refactor(ci): run install tests in one job per mode, distros from SPOT
Collapse the 5-distro matrix in the make and pkgmgr install-test workflows
into a single job that runs every distro in parallel inside extracted
scripts, cutting 5 runners down to 1 per workflow. Each distro installs
against its own copy of the checkout so the concurrent in-container builds
never race on the shared tree. The distro list is read from the
INFINITO_DISTROS SPOT in default.env instead of being hardcoded.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 21:23:38 +02:00

34 lines
900 B
YAML

name: "📦 Test: Install Make"
on:
workflow_call:
permissions:
actions: write
contents: read
packages: read
jobs:
test-install-make:
name: 🛠️ Makefile
runs-on: ubuntu-latest
timeout-minutes: 30
env:
NIX_CONFIG: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v7.0.0
- name: 🔍 Resolve paths from default.env
run: |
for key in INFINITO_SRC_DIR INFINITO_VENV_DIR; do
value="$(awk -F= -v k="^${key}=" '$0 ~ k {print $2; exit}' default.env)"
test -n "${value}" || { echo "${key} not found in default.env" >&2; exit 1; }
echo "${key}=${value}" >> "$GITHUB_ENV"
done
- name: 📦 Install & test in every pkgmgr virgin container (parallel)
run: ./scripts/tests/install/make.sh