From c21d99e8ffffb60fc7e65e61fb61d76945a4bc2f Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:01:34 +0530 Subject: [PATCH 1/4] chore: make ci builds parallel --- .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 ffb5478778a..95ec01fad59 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -61,7 +61,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --build build + cmake --build --parallel build - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }} From 23495b44a2e2e5340780c29c8a5972a443e77653 Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:03:08 +0530 Subject: [PATCH 2/4] chore: fix specification of job number --- .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 95ec01fad59..e307816853d 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -61,7 +61,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --build --parallel build + cmake --build build -j - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }} From 99a37eac45509a0920b01174cff0f2042465e0ba Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:25:09 +0530 Subject: [PATCH 3/4] chore: use 4 as a limit for parallel builds --- .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 e307816853d..acbcd49c726 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -36,7 +36,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 -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -j - name: Lint modified files shell: bash run: python3 scripts/file_linter.py @@ -61,7 +61,7 @@ jobs: submodules: true - run: | cmake -B ./build -S . - cmake --build build -j + cmake --build build --parallel 4 - name: Label on PR fail uses: actions/github-script@v6 if: ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }} From 0c6a61683f2696b1dac3d522bbfff7dcb471c29a Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:26:27 +0530 Subject: [PATCH 4/4] fix: remove parallel from linting --- .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 acbcd49c726..70dd717fa33 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -36,7 +36,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 -j + run: cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - name: Lint modified files shell: bash run: python3 scripts/file_linter.py