diff --git a/.github/workflows/pentoo-visibility.yaml b/.github/workflows/pentoo-visibility.yaml new file mode 100644 index 000000000..6cbbdef9a --- /dev/null +++ b/.github/workflows/pentoo-visibility.yaml @@ -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 diff --git a/scripts/qa/Dockerfile b/scripts/qa/Dockerfile new file mode 100644 index 000000000..0d48925f9 --- /dev/null +++ b/scripts/qa/Dockerfile @@ -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