From a955e32daaaaef5ff84e3ecb282a510c37907690 Mon Sep 17 00:00:00 2001 From: plowsof <77655812+plowsof@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:39:54 +0100 Subject: [PATCH] build.yml: -j4 with lin/win runners https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories --- .github/workflows/build.yml | 6 +++--- .github/workflows/depends.yml | 2 +- .github/workflows/gitian.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0954bce45c6..fcff96b0e49 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ on: env: REMOVE_BUNDLED_PACKAGES : sudo rm -rf /usr/local BUILD_DEFAULT_LINUX: | - cmake -S . -B build -D ARCH="default" -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release && cmake --build build -j3 + cmake -S . -B build -D ARCH="default" -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Release && cmake --build build -j4 APT_INSTALL_LINUX: 'sudo apt -y install build-essential cmake libboost-all-dev miniupnpc libunbound-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libzmq3-dev libsodium-dev libhidapi-dev libnorm-dev libusb-1.0-0-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache' APT_SET_CONF: | echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom @@ -72,7 +72,7 @@ jobs: - name: build run: | ${{env.CCACHE_SETTINGS}} - make release-static-win64 -j2 + make release-static-win64 -j4 # See the OS labels and monitor deprecations here: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources @@ -131,7 +131,7 @@ jobs: run: | ${{env.CCACHE_SETTINGS}} cmake . - make wallet_api -j3 + make wallet_api -j4 test-ubuntu: needs: build-ubuntu diff --git a/.github/workflows/depends.yml b/.github/workflows/depends.yml index 3ee6067482b..ecd0a81dd09 100644 --- a/.github/workflows/depends.yml +++ b/.github/workflows/depends.yml @@ -103,7 +103,7 @@ jobs: - name: build run: | ${{env.CCACHE_SETTINGS}} - make depends target=${{ matrix.toolchain.host }} -j2 + make depends target=${{ matrix.toolchain.host }} -j4 - uses: actions/upload-artifact@v4 if: ${{ matrix.toolchain.host == 'x86_64-w64-mingw32' || matrix.toolchain.host == 'x86_64-apple-darwin' || matrix.toolchain.host == 'aarch64-apple-darwin' || matrix.toolchain.host == 'x86_64-unknown-linux-gnu' }} with: diff --git a/.github/workflows/gitian.yml b/.github/workflows/gitian.yml index db9735ac332..a272ac5e4f6 100644 --- a/.github/workflows/gitian.yml +++ b/.github/workflows/gitian.yml @@ -34,7 +34,7 @@ jobs: ./gitian-build.py --setup --docker github-actions ${{ github.ref_name }} - name: build run: | - ./gitian-build.py --docker --detach-sign --no-commit --build -j 3 -o ${{ matrix.operating-system.option }} github-actions ${{ github.ref_name }} + ./gitian-build.py --docker --detach-sign --no-commit --build -j 4 -o ${{ matrix.operating-system.option }} github-actions ${{ github.ref_name }} - name: post build run: | cd out/${{ github.ref_name }}