From 77fd4fc3457efceff641def9f50df7592ec49bdb Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 24 Jul 2024 18:54:11 -0700 Subject: [PATCH] Parallelize the CI builds (#1563) GitHub Actions runners are multicores; take advantage of that. --- .github/workflows/isa-build.yml | 2 +- .github/workflows/merge-and-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/isa-build.yml b/.github/workflows/isa-build.yml index 822b09516..f517a2226 100644 --- a/.github/workflows/isa-build.yml +++ b/.github/workflows/isa-build.yml @@ -53,7 +53,7 @@ jobs: if: steps.pull_container_image.outcome == 'success' run: | docker run --rm -v ${{ github.workspace }}:/build riscvintl/riscv-docs-base-container-image:latest \ - /bin/sh -c 'make' + /bin/sh -c "make -j$(nproc)" # Upload the riscv-privileged PDF file - name: Upload riscv-privileged.pdf diff --git a/.github/workflows/merge-and-release.yml b/.github/workflows/merge-and-release.yml index ae4a69c01..139511ad5 100644 --- a/.github/workflows/merge-and-release.yml +++ b/.github/workflows/merge-and-release.yml @@ -36,7 +36,7 @@ jobs: if: steps.pull_container_image.outcome == 'success' run: | docker run --rm -v ${{ github.workspace }}:/build riscvintl/riscv-docs-base-container-image:latest \ - /bin/sh -c 'make' + /bin/sh -c "make -j$(nproc)" # Upload the riscv-privileged PDF file - name: Upload riscv-privileged.pdf