mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-07 20:10:18 +02:00
revamp workflows to be more tolerant
This commit is contained in:
parent
7599b27938
commit
ebababa5e1
4 changed files with 52 additions and 2 deletions
28
.github/workflows/pentoo-binpkgs.yaml
vendored
Normal file
28
.github/workflows/pentoo-binpkgs.yaml
vendored
Normal 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
|
||||
2
.github/workflows/pentoo-visibility.yaml
vendored
2
.github/workflows/pentoo-visibility.yaml
vendored
|
|
@ -2,7 +2,7 @@ name: Pentoo Visibility Check
|
|||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "3 * * * *"
|
||||
- cron: "6 * * * *"
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
|
|
|||
22
scripts/qa/Dockerfile.binpkg
Normal file
22
scripts/qa/Dockerfile.binpkg
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue