commit: 85d8a81fca9c56922a6c7653565680e892e626e3
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 3 15:31:00 2026 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 3 15:56:14 2026 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=85d8a81f
ci: run gentoo-regen in gentoo container image
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.github/workflows/test.yml | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 7c91875c..58c4d032 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -29,6 +29,8 @@ jobs:
args: "format --check --diff"
gentoo-regen:
+ container:
+ image: docker.io/gentoo/stage3:latest
runs-on: ubuntu-latest
continue-on-error: true # This job currently fails with ubuntu's bash 5.3
steps:
@@ -38,31 +40,21 @@ jobs:
artifact-id: ${{ inputs.release-artifact-id }}
path: pkgcore
- - name: Install bash 5.3
- uses: pkgcore/gh-actions/bash-5.3@main
-
- name: Checkout gentoo
uses: actions/checkout@v4
with:
repository: gentoo/gentoo
path: gentoo
- - name: Collect gentoo sha1
- run: |
- rev=$(git --git-dir gentoo/.git/ rev-parse HEAD)
- echo "sha1 is $rev"
- echo "GENTOO_SHA1=${rev}" >> "$GITHUB_ENV"
+ - name: Link gentoo repo
+ run: ln -s ${PWD}/gentoo /var/db/repos/gentoo
- - name: Set up Python 3.13
- uses: actions/setup-python@v5
- with:
- python-version: '3.13'
+ - name: Install dev-python/pip
+ run: FEATURES="-ipc-sandbox -network-sandbox" emerge -1 dev-python/pip
- - name: Install pip dependencies
- run: |
- python -m pip install --upgrade pip
- pip install "./pkgcore"
+ - name: Install pkgcore
+ run: pip install --break-system-packages "./pkgcore"
- - name: Run pmaint regen against ${{ env.GENTOO_SHA1 }}
+ - name: Run pmaint regen
working-directory: ./gentoo
run: pmaint regen --use-local-desc --pkg-desc-index --rsync --force .