From 4ba4533c87ce8893756ca4b58292c5f16672b979 Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:34:41 +0530 Subject: [PATCH 1/6] chore: make CIs build in parallel --- .github/workflows/awesome_workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index d57946e53c..512fe6a337 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -35,7 +35,7 @@ jobs: # compiling first gives clang-tidy access to all the header files and settings used to compile the programs. # This will check for macros, if any, on linux and not for Windows. But the use of portability checks should # be able to catch any errors for other platforms. - run: cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + run: cmake -B build --parallel 4 -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - name: Lint modified files shell: bash run: python3 scripts/file_linter.py @@ -59,7 +59,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --build build --config Release + cmake --build build --parallel 4 --config Release - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }} From 69ee022090536a4d636c583335c7e94bc1ff3b75 Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:39:20 +0530 Subject: [PATCH 2/6] fix: no parrallel argument error --- .github/workflows/awesome_workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index 512fe6a337..fc8cd27d6f 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -35,7 +35,7 @@ jobs: # compiling first gives clang-tidy access to all the header files and settings used to compile the programs. # This will check for macros, if any, on linux and not for Windows. But the use of portability checks should # be able to catch any errors for other platforms. - run: cmake -B build --parallel 4 -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + run: cmake -B build --parallel -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - name: Lint modified files shell: bash run: python3 scripts/file_linter.py @@ -59,7 +59,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --build build --parallel 4 --config Release + cmake --build build --config Release --parallel 4 - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }} From 3666712b3975f96b6ab12139a3ad51fddff9068f Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:41:55 +0530 Subject: [PATCH 3/6] chore: put parrallel argument before --build --- .github/workflows/awesome_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index fc8cd27d6f..cdb8e49a6e 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -59,7 +59,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --build build --config Release --parallel 4 + cmake --parallel 4 --build build --config Release - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }} From 2530d716f0cc4e290d08eb02f17f074325cf9019 Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:43:49 +0530 Subject: [PATCH 4/6] chore: after --build --- .github/workflows/awesome_workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index cdb8e49a6e..008ee54e4d 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -35,7 +35,7 @@ jobs: # compiling first gives clang-tidy access to all the header files and settings used to compile the programs. # This will check for macros, if any, on linux and not for Windows. But the use of portability checks should # be able to catch any errors for other platforms. - run: cmake -B build --parallel -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + run: cmake -B --parrallel 4 build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - name: Lint modified files shell: bash run: python3 scripts/file_linter.py @@ -59,7 +59,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --parallel 4 --build build --config Release + cmake --build --parallel 4 build --config Release - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }} From 0dc638d87ee41466618f2dcad0a357ff694cef9e Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:44:59 +0530 Subject: [PATCH 5/6] fix: remove parrallel --- .github/workflows/awesome_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index 008ee54e4d..18ab9dc3e5 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -35,7 +35,7 @@ jobs: # compiling first gives clang-tidy access to all the header files and settings used to compile the programs. # This will check for macros, if any, on linux and not for Windows. But the use of portability checks should # be able to catch any errors for other platforms. - run: cmake -B --parrallel 4 build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + run: cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - name: Lint modified files shell: bash run: python3 scripts/file_linter.py From f030a4eb1408905553692100f619a8faa3eeeb42 Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:46:19 +0530 Subject: [PATCH 6/6] chore: add parrallel to ci --- .github/workflows/awesome_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index 18ab9dc3e5..6343012581 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -59,7 +59,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --build --parallel 4 build --config Release + cmake --build build --config Release --parallel 4 - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }}