Files
computer-playbook/.github/workflows/test-install-pkgmgr.yml
T

42 lines
1.2 KiB
YAML

name: Install Infinito.Nexus with Package Manager (pkgmgr)
on:
workflow_call:
permissions:
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
'