mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 20:26:33 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: "📥 Test: Install Package Manager"
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
actions: write
|
|
contents: read
|
|
packages: read
|
|
|
|
jobs:
|
|
test-install-pkgmgr:
|
|
name: 📦 Test pkgmgr install
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
env:
|
|
NIX_CONFIG: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
distro: [arch, debian, ubuntu, fedora, centos]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install & test in pkgmgr virgin container
|
|
run: |
|
|
docker run --rm \
|
|
-w "/root/" \
|
|
-e INFINITO_COMPILE=0 \
|
|
-e NIX_CONFIG="${NIX_CONFIG}" \
|
|
-v "$(pwd):/root/Repositories/github.com/kevinveenbirkenbach/infinito-nexus" \
|
|
"ghcr.io/kevinveenbirkenbach/pkgmgr-${{ matrix.distro }}:stable" \
|
|
bash -lc '
|
|
set -euo pipefail
|
|
make -C "/root/Repositories/github.com/kevinveenbirkenbach/infinito-nexus" install-system-python
|
|
pkgmgr install infinito --clone-mode shallow --no-verification
|
|
source "/opt/venvs/infinito/bin/activate"
|
|
infinito --help
|
|
'
|