From: Alejandro Colomar Date: Tue, 13 Feb 2024 15:54:33 +0000 (+0100) Subject: share/containers/, .github/workflows/: Don't make(1) twice X-Git-Tag: 4.15.1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3cae72faaf71d88d48cccdbd57586397be19afe;p=thirdparty%2Fshadow.git share/containers/, .github/workflows/: Don't make(1) twice It was being done so that the second one prints errors without races. However, the same thing can be achieved by passing -Orecurse to make(1). And this makes the logs even more readable, since there's no racy output at all. Fixes: 97f79e3b2715 ("CI: Make build logs more readable") Link: Link: Acked-by: Iker Pedrosa Cc: Andrew Clayton Cc: Konstantin Pavlov Cc: Dylan Arbour Signed-off-by: Alejandro Colomar --- diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index b9cfb4e9d..59e4a16d9 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -32,10 +32,7 @@ jobs: - name: Build shadow-utils run: | PROCESSORS=$(/usr/bin/getconf _NPROCESSORS_ONLN) - make -kj$PROCESSORS || true - - - name: Check build errors - run: make + make -Orecurse -j$PROCESSORS - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 diff --git a/share/containers/alpine.dockerfile b/share/containers/alpine.dockerfile index e1886e40c..f6d9f11c1 100644 --- a/share/containers/alpine.dockerfile +++ b/share/containers/alpine.dockerfile @@ -26,8 +26,7 @@ RUN ./autogen.sh \ --disable-man \ --disable-nls \ --with-yescrypt -RUN make -kj4 || true -RUN make +RUN make -Orecurse -j4 RUN bash -c "trap 'cat &2' ERR; make check;" RUN make install diff --git a/share/containers/debian.dockerfile b/share/containers/debian.dockerfile index 9a3029672..408c6fa10 100644 --- a/share/containers/debian.dockerfile +++ b/share/containers/debian.dockerfile @@ -23,8 +23,7 @@ RUN ./autogen.sh \ --without-selinux \ --enable-man \ --with-yescrypt -RUN make -kj4 || true -RUN make +RUN make -Orecurse -j4 RUN bash -c "trap 'cat &2' ERR; make check;" RUN make install diff --git a/share/containers/fedora.dockerfile b/share/containers/fedora.dockerfile index 5ad9d418f..93c6b2201 100644 --- a/share/containers/fedora.dockerfile +++ b/share/containers/fedora.dockerfile @@ -25,8 +25,7 @@ RUN ./autogen.sh \ --with-group-name-max-length=32 \ --enable-lastlog \ --enable-logind=no -RUN make -kj4 || true -RUN make +RUN make -Orecurse -j4 RUN bash -c "trap 'cat &2' ERR; make check;" RUN make install