nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 33ec6dece4a817bd6bc551527703a9264203fe88
parent f8b8e77be9f11b90e3f129aa5a920e75cecdab05
Author: Arun <engineerarun@gmail.com>
Date:   Mon, 30 May 2022 22:11:43 +0530

Merge pull request #1376 from N-R-K/patches_ci

Improve patches ci
Diffstat:
M.github/workflows/ci.yml | 32+++++++++-----------------------
1 file changed, 9 insertions(+), 23 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -43,26 +43,12 @@ jobs: env: CC: gcc run: | - export CFLAGS="$CFLAGS -Werror" - make clean - echo "########## O_NAMEFIRST=1 ##########" - make O_NAMEFIRST=1 - make clean - echo "########## O_GITSTATUS=1 ##########" - make O_GITSTATUS=1 - make clean - echo "########## O_RESTOREPREVIEW=1 ##########" - make O_RESTOREPREVIEW=1 - make clean - echo "########## O_NAMEFIRST=1 O_GITSTATUS=1 ##########" - make O_NAMEFIRST=1 O_GITSTATUS=1 - make clean - echo "########## O_NAMEFIRST=1 O_RESTOREPREVIEW=1 ##########" - make O_NAMEFIRST=1 O_RESTOREPREVIEW=1 - make clean - echo "########## O_GITSTATUS=1 O_RESTOREPREVIEW=1 ##########" - make O_GITSTATUS=1 O_RESTOREPREVIEW=1 - make clean - echo "########## O_NAMEFIRST=1 O_GITSTATUS=1 O_RESTOREPREVIEW=1 ##########" - make O_NAMEFIRST=1 O_GITSTATUS=1 O_RESTOREPREVIEW=1 - make clean + patches=("O_GITSTATUS" "O_NAMEFIRST" "O_RESTOREPREVIEW") + z=$(( 1 << ${#patches[@]} )) + for ((n=1; n < z; ++n)); do + for ((i=0; i < ${#patches[@]}; ++i)); do + printf "%s=%d " "${patches[$i]}" "$(( (n & (1 << i)) != 0 ))" + done | tee "tmp" ; echo + make clean + xargs make <"tmp" + done