Skip to content

Commit

Permalink
Merge pull request #713 from subspace/build-node-farmer-separately
Browse files Browse the repository at this point in the history
Build node and farmer separately to use less RAM in CI
  • Loading branch information
nazar-pc authored Jul 24, 2022
2 parents 5847b0c + 873dab5 commit 06ec9a6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/snapshot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 06ec9a6

Please sign in to comment.