Skip to content

Commit

Permalink
ci: use more jobs
Browse files Browse the repository at this point in the history
Configure to use four parallel jobs.

Apparently github has been providing hosted runners with 4 CPUs since January,
2024 [0].

The MacOS runner may only provide 3 CPUs [1], but four jobs on three CPUs
shouldn't be harmful and may actually help test performance, so we treat all
target platforms uniformly.

[0]: https://github.blog/news-insights/product-news/github-hosted-runners-double-the-power-for-open-source/
[1]: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
  • Loading branch information
jpgrayson committed Sep 8, 2024
1 parent fb1bbcc commit de8f159
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
sudo apt-get install quilt gnupg2 libio-pty-perl
- name: Test
env:
STG_PROVE_OPTS: "--jobs=2"
STG_PROVE_OPTS: "--jobs=4"
STG_TEST_OPTS: "--verbose-log"
STG_PROFILE: "release"
run: |
Expand All @@ -45,17 +45,17 @@ jobs:
sudo apt-get install asciidoc asciidoctor docbook-xsl-ns xmlto
- name: Build Docs Asciidoc
run: |
make -j2 doc
make -j4 doc
- name: Build Docs Asciidoctor
env:
USE_ASCIIDOCTOR: "1"
run: |
make -j2 doc
make -j4 doc
- name: Install HTML Docs
env:
USE_ASCIIDOCTOR: "1"
run: |
make -j2 htmldir="$GITHUB_WORKSPACE"/stgit-html install-html
make -j4 htmldir="$GITHUB_WORKSPACE"/stgit-html install-html
- name: Upload HTML Docs
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
sudo cpanm IO::Pty
- name: Test
env:
STG_PROVE_OPTS: "--jobs=2"
STG_PROVE_OPTS: "--jobs=4"
STG_TEST_OPTS: "--verbose-log"
STG_PROFILE: ${{ matrix.profile }}
run: |
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
- name: Pre-test Check 2
shell: msys2 {0}
env:
STG_PROVE_OPTS: "--jobs=2"
STG_PROVE_OPTS: "--jobs=4"
STG_TEST_OPTS: "--verbose-log"
STG_PROFILE: "release"
run: |
Expand All @@ -247,7 +247,7 @@ jobs:
STG_TEST_OPTS: "--verbose-log"
STG_PROFILE: "release"
run: |
timeout 900s make -C t SHELL_PATH=C:/msys64/usr/bin/bash --jobs=3 test
timeout 900s make -C t SHELL_PATH=C:/msys64/usr/bin/bash --jobs=4 test
- name: Show Failures
if: ${{ failure() }}
shell: msys2 {0}
Expand Down

0 comments on commit de8f159

Please sign in to comment.