diff --git a/.build.sh b/.build.sh new file mode 100755 index 0000000..cd13048 --- /dev/null +++ b/.build.sh @@ -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 -C target/release farm node plot wallet diff --git a/.drone.yml b/.drone.yml index 71e83ee..eb97e6e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,7 +33,7 @@ steps: - name: cache path: /vendor commands: - - cargo build --release + - sh .build.sh - name: release image: plugins/gitea-release @@ -42,7 +42,7 @@ steps: from_secret: gitea_token base_url: https://gitea.hillion.co.uk files: - - target/release/plot + - target/release/linux_amd64.tar.gz checksum: - sha256 when: @@ -54,6 +54,6 @@ volumes: temp: {} --- kind: signature -hmac: d7c37edb0847754a42bb7ce0a5d1107690cd061201ac6e6154eef9845bbe0e80 +hmac: 91ad5c3d608ca8d5d0eb9ed54277099436549ab20636a323e40b8ba81b5bc14a ... diff --git a/Cargo.lock b/Cargo.lock index 59963ca..12542f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,17 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +[[package]] +name = "farm" +version = "0.1.0" + +[[package]] +name = "node" +version = "0.1.0" + [[package]] name = "plot" version = "0.1.0" + +[[package]] +name = "wallet" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index f73f4c8..f49f66b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,8 @@ [workspace] members = [ + "farm", + "node", "plot", -] \ No newline at end of file + "wallet", +] diff --git a/farm/Cargo.toml b/farm/Cargo.toml new file mode 100644 index 0000000..613e0f7 --- /dev/null +++ b/farm/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "farm" +version = "0.1.0" +authors = ["Jake Hillion "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/farm/src/main.rs b/farm/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/farm/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/node/Cargo.toml b/node/Cargo.toml new file mode 100644 index 0000000..f01bba2 --- /dev/null +++ b/node/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "node" +version = "0.1.0" +authors = ["Jake Hillion "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/node/src/main.rs b/node/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/node/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/wallet/Cargo.toml b/wallet/Cargo.toml new file mode 100644 index 0000000..db5e1a6 --- /dev/null +++ b/wallet/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "wallet" +version = "0.1.0" +authors = ["Jake Hillion "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/wallet/src/main.rs b/wallet/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/wallet/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}