Extracted build logic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2021-06-14 19:45:10 +01:00
parent ad64732dee
commit 425189f022
2 changed files with 10 additions and 2 deletions

9
.build.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
set -x
# build for all architectures
cargo build --release
# tar binary files for upload
tar -czvf target/release/linux_amd64.tar.gz target/release/farm target/release/node target/release/plot target/release/wallet

View File

@ -33,8 +33,7 @@ steps:
- name: cache
path: /vendor
commands:
- cargo build --release
- tar -czvf target/release/linux_amd64.tar.gz target/release/farm target/release/node target/release/plot target/release/wallet
- sh .build.sh
- name: release
image: plugins/gitea-release