Skip to content

Commit de8f159

Browse files
committed
ci: use more jobs
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
1 parent fb1bbcc commit de8f159

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
sudo apt-get install quilt gnupg2 libio-pty-perl
3232
- name: Test
3333
env:
34-
STG_PROVE_OPTS: "--jobs=2"
34+
STG_PROVE_OPTS: "--jobs=4"
3535
STG_TEST_OPTS: "--verbose-log"
3636
STG_PROFILE: "release"
3737
run: |
@@ -45,17 +45,17 @@ jobs:
4545
sudo apt-get install asciidoc asciidoctor docbook-xsl-ns xmlto
4646
- name: Build Docs Asciidoc
4747
run: |
48-
make -j2 doc
48+
make -j4 doc
4949
- name: Build Docs Asciidoctor
5050
env:
5151
USE_ASCIIDOCTOR: "1"
5252
run: |
53-
make -j2 doc
53+
make -j4 doc
5454
- name: Install HTML Docs
5555
env:
5656
USE_ASCIIDOCTOR: "1"
5757
run: |
58-
make -j2 htmldir="$GITHUB_WORKSPACE"/stgit-html install-html
58+
make -j4 htmldir="$GITHUB_WORKSPACE"/stgit-html install-html
5959
- name: Upload HTML Docs
6060
uses: actions/upload-artifact@v4
6161
with:
@@ -140,7 +140,7 @@ jobs:
140140
sudo cpanm IO::Pty
141141
- name: Test
142142
env:
143-
STG_PROVE_OPTS: "--jobs=2"
143+
STG_PROVE_OPTS: "--jobs=4"
144144
STG_TEST_OPTS: "--verbose-log"
145145
STG_PROFILE: ${{ matrix.profile }}
146146
run: |
@@ -235,7 +235,7 @@ jobs:
235235
- name: Pre-test Check 2
236236
shell: msys2 {0}
237237
env:
238-
STG_PROVE_OPTS: "--jobs=2"
238+
STG_PROVE_OPTS: "--jobs=4"
239239
STG_TEST_OPTS: "--verbose-log"
240240
STG_PROFILE: "release"
241241
run: |
@@ -247,7 +247,7 @@ jobs:
247247
STG_TEST_OPTS: "--verbose-log"
248248
STG_PROFILE: "release"
249249
run: |
250-
timeout 900s make -C t SHELL_PATH=C:/msys64/usr/bin/bash --jobs=3 test
250+
timeout 900s make -C t SHELL_PATH=C:/msys64/usr/bin/bash --jobs=4 test
251251
- name: Show Failures
252252
if: ${{ failure() }}
253253
shell: msys2 {0}

0 commit comments

Comments
 (0)