From 873dab5e13bd914bdc799a71ebe2faa0dfd6d00e Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Sat, 23 Jul 2022 23:42:39 +0300 Subject: [PATCH] Build node and farmer separately to use less RAM in CI --- .github/workflows/snapshot-build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/snapshot-build.yml b/.github/workflows/snapshot-build.yml index 24aa942d54..b9da0b69f8 100644 --- a/.github/workflows/snapshot-build.yml +++ b/.github/workflows/snapshot-build.yml @@ -149,7 +149,7 @@ jobs: run: sudo apt-get install -y --no-install-recommends g++-aarch64-linux-gnu gcc-aarch64-linux-gnu libc6-dev-arm64-cross if: matrix.build.target == 'aarch64-unknown-linux-gnu' - - name: Build (farmer on Ubuntu or Windows with OpenCL) + - name: Build farmer on Ubuntu or Windows with OpenCL uses: actions-rs/cargo@v1 with: command: build @@ -166,11 +166,17 @@ jobs: move ${{ env.PRODUCTION_TARGET }}/subspace-farmer.exe ${{ env.PRODUCTION_TARGET }}/subspace-farmer-opencl.exe if: runner.os == 'Windows' - - name: Build (farmer and node without OpenCL) + - name: Build farmer without OpenCL uses: actions-rs/cargo@v1 with: command: build - args: -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-node --bin subspace-farmer + args: -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer + + - name: Build node + uses: actions-rs/cargo@v1 + with: + command: build + args: -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-node - name: Sign Application (macOS) run: |