all new emerge --pretend check

This commit is contained in:
Rick Farina (Zero_Chaos) 2025-08-23 14:01:38 -04:00
parent 3a669cd9c7
commit 4d7220edf2
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,26 @@
name: Pentoo Visibility Check
on:
pull_request:
branches:
- master
jobs:
pentoo-visibility-check:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: List added files
run: git diff-tree --no-commit-id --name-only -r ${{ github.sha }}
-
name: Visibility Check
run: |
sudo docker build --progress=plain . -f scripts/qa/Dockerfile

19
scripts/qa/Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM pentoolinux/pentoo-core
#setup gentoo repo
WORKDIR /var/db/repos/
RUN git clone https://github.com/gentoo/gentoo.git --depth 1
#RUN git clone https://github.com/pentoo/pentoo-overlay.git pentoo --depth 1
COPY . pentoo
RUN pwd
RUN ls -al
RUN ls -al pentoo
#RUN emerge --regen --jobs=$(nproc) --quiet
WORKDIR /home
#RUN sed -i 's#pentoo-in-a-container#pentoo-in-a-container -pentoo-full#' /etc/portage/make.conf
#disable minimal
RUN sed -i 's# pentoo-minimal##' /etc/portage/make.conf
#install libsndfile minimal to break circular deps
#RUN USE=minimal FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse media-libs/libsndfile
#install pentoo/pentoo
RUN FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend