revamp workflows to be more tolerant

This commit is contained in:
Rick Farina (Zero_Chaos) 2026-02-03 20:56:51 -05:00
parent 7599b27938
commit ebababa5e1
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
4 changed files with 52 additions and 2 deletions

28
.github/workflows/pentoo-binpkgs.yaml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Pentoo Binpkg Check
on:
schedule:
- cron: "6 * * * *"
pull_request:
branches:
- master
jobs:
pentoo-visibility-check:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v5
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: Binpkg Check
run: |
sudo docker build --progress=plain . -f scripts/qa/Dockerfile.binpkg

View file

@ -2,7 +2,7 @@ name: Pentoo Visibility Check
on:
schedule:
- cron: "3 * * * *"
- cron: "6 * * * *"
pull_request:
branches:
- master

View file

@ -0,0 +1,22 @@
FROM pentoolinux/pentoo-core
# Setup repos
WORKDIR /var/db/repos/
# setup gentoo repo
RUN git clone https://github.com/gentoo/gentoo.git --depth 1
# setup pentoo repo
#RUN git clone https://github.com/pentoo/pentoo-overlay.git pentoo --depth 1
# Use the github checkout for pentoo, that's what we are testing
COPY . pentoo
#Regen doubles the time it takes for the action to run
#Revisit if this is worth running when we have >2 emerge calls
#RUN time FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --regen --jobs=$(nproc) --quiet
WORKDIR /home
# disable minimal (pentoo-core is default minimal)
RUN sed -i 's# pentoo-minimal##' /etc/portage/make.conf
#test install pentoo/pentoo
RUN time FEATURES="getbinpkg -ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend

View file

@ -19,4 +19,4 @@ WORKDIR /home
RUN sed -i 's# pentoo-minimal##' /etc/portage/make.conf
#test install pentoo/pentoo
RUN time FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend
RUN time FEATURES="-getbinpkg -ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend