Use 4 cores in CI

GitHub Actions runners for public repositories have 4 CPU cores:
https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories

Additionally, it might slightly increase the chances of finding a race condition.
This commit is contained in:
Eduardo Sánchez Muñoz 2025-12-30 15:37:03 +01:00
parent dc74348b96
commit 0b262c6ba7

View file

@ -49,7 +49,7 @@ jobs:
mirror-state mirror-state
key: cache-${{ hashFiles('steps/*/sources') }} key: cache-${{ hashFiles('steps/*/sources') }}
- name: Run bootstrap - name: Run bootstrap
run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 2 --internal-ci pass1 --mirror file://${PWD}/mirror run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 4 --internal-ci pass1 --mirror file://${PWD}/mirror
- name: Archive created packages - name: Archive created packages
if: failure() # archive failed builds progress if: failure() # archive failed builds progress
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -98,7 +98,7 @@ jobs:
- name: Copy distfiles - name: Copy distfiles
run: ./download-distfiles.sh file:///${PWD}/mirror run: ./download-distfiles.sh file:///${PWD}/mirror
- name: Run bootstrap - name: Run bootstrap
run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 2 --internal-ci pass2 --mirror file://${PWD}/mirror run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 4 --internal-ci pass2 --mirror file://${PWD}/mirror
- name: Archive created packages - name: Archive created packages
if: failure() # archive failed builds progress if: failure() # archive failed builds progress
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -147,7 +147,7 @@ jobs:
- name: Copy distfiles - name: Copy distfiles
run: ./download-distfiles.sh file:///${PWD}/mirror run: ./download-distfiles.sh file:///${PWD}/mirror
- name: Run bootstrap - name: Run bootstrap
run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 2 --internal-ci pass3 --mirror file://${PWD}/mirror run: ./rootfs.py --bwrap --external-sources --build-kernels --cores 4 --internal-ci pass3 --mirror file://${PWD}/mirror
- name: Archive created packages - name: Archive created packages
if: always() # archive both failed and successful builds if: always() # archive both failed and successful builds
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4