binaries #2

Merged
JakeHillion merged 9 commits from binaries into testnet 2021-06-14 19:58:41 +01:00
10 changed files with 64 additions and 4 deletions

9
.build.sh Executable 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 -C target/release farm node plot wallet

View File

@ -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
...

12
Cargo.lock generated
View File

@ -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"

View File

@ -1,5 +1,8 @@
[workspace]
members = [
"farm",
"node",
"plot",
]
"wallet",
]

9
farm/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "farm"
version = "0.1.0"
authors = ["Jake Hillion <jake@hillion.co.uk>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
farm/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

9
node/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "node"
version = "0.1.0"
authors = ["Jake Hillion <jake@hillion.co.uk>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
node/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

9
wallet/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "wallet"
version = "0.1.0"
authors = ["Jake Hillion <jake@hillion.co.uk>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
wallet/src/main.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}