Skip to content

Commit

Permalink
CI: Single threaded 'make' after parallelism fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-xmr committed Sep 25, 2021
1 parent 6b824c9 commit 508dbe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Expand Up @@ -6,7 +6,7 @@ on: [push, pull_request]
env:
REMOVE_BUNDLED_BOOST : rm -rf /usr/local/share/boost
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 -j3 || cmake --build build)
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
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- name: build
run: |
${{env.CCACHE_SETTINGS}}
make -j3
make -j3 || make
build-windows:
runs-on: windows-latest
Expand All @@ -61,7 +61,7 @@ jobs:
- name: build
run: |
${{env.CCACHE_SETTINGS}}
make release-static-win64 -j2
make release-static-win64 -j2 || make release-static-win64
# 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
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
run: |
${{env.CCACHE_SETTINGS}}
cmake .
make wallet_api -j3
make wallet_api -j3 || make wallet_api
test-ubuntu:
needs: build-ubuntu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/depends.yml
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: build
run: |
${{env.CCACHE_SETTINGS}}
make depends target=${{ matrix.toolchain.host }} -j2
make depends target=${{ matrix.toolchain.host }} -j2 || make depends target=${{ matrix.toolchain.host }}
- uses: actions/upload-artifact@v2
if: ${{ matrix.toolchain.host == 'x86_64-w64-mingw32' || matrix.toolchain.host == 'x86_64-apple-darwin11' || matrix.toolchain.host == 'x86_64-unknown-linux-gnu' }}
with:
Expand Down

0 comments on commit 508dbe6

Please sign in to comment.