From 0b262c6ba71d5b76f0063cf394757e2942d08d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Tue, 30 Dec 2025 15:37:03 +0100 Subject: [PATCH] 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. --- .github/workflows/bwrap.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bwrap.yml b/.github/workflows/bwrap.yml index d0d82061..cbd5f1f2 100644 --- a/.github/workflows/bwrap.yml +++ b/.github/workflows/bwrap.yml @@ -49,7 +49,7 @@ jobs: mirror-state key: cache-${{ hashFiles('steps/*/sources') }} - 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 if: failure() # archive failed builds progress uses: actions/upload-artifact@v4 @@ -98,7 +98,7 @@ jobs: - name: Copy distfiles run: ./download-distfiles.sh file:///${PWD}/mirror - 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 if: failure() # archive failed builds progress uses: actions/upload-artifact@v4 @@ -147,7 +147,7 @@ jobs: - name: Copy distfiles run: ./download-distfiles.sh file:///${PWD}/mirror - 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 if: always() # archive both failed and successful builds uses: actions/upload-artifact@v4