Skip to content

Commit 06ec9a6

Browse files
authored
Merge pull request #713 from subspace/build-node-farmer-separately
Build node and farmer separately to use less RAM in CI
2 parents 5847b0c + 873dab5 commit 06ec9a6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/snapshot-build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
run: sudo apt-get install -y --no-install-recommends g++-aarch64-linux-gnu gcc-aarch64-linux-gnu libc6-dev-arm64-cross
150150
if: matrix.build.target == 'aarch64-unknown-linux-gnu'
151151

152-
- name: Build (farmer on Ubuntu or Windows with OpenCL)
152+
- name: Build farmer on Ubuntu or Windows with OpenCL
153153
uses: actions-rs/cargo@v1
154154
with:
155155
command: build
@@ -166,11 +166,17 @@ jobs:
166166
move ${{ env.PRODUCTION_TARGET }}/subspace-farmer.exe ${{ env.PRODUCTION_TARGET }}/subspace-farmer-opencl.exe
167167
if: runner.os == 'Windows'
168168

169-
- name: Build (farmer and node without OpenCL)
169+
- name: Build farmer without OpenCL
170170
uses: actions-rs/cargo@v1
171171
with:
172172
command: build
173-
args: -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-node --bin subspace-farmer
173+
args: -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer
174+
175+
- name: Build node
176+
uses: actions-rs/cargo@v1
177+
with:
178+
command: build
179+
args: -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-node
174180

175181
- name: Sign Application (macOS)
176182
run: |

0 commit comments

Comments
 (0)