Initial repository setup (#1)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Co-authored-by: Jake Hillion <jake@hillion.co.uk>
Reviewed-on: #1
Co-authored-by: JakeHillion <jake@hillion.co.uk>
Co-committed-by: JakeHillion <jake@hillion.co.uk>
This commit is contained in:
JakeHillion 2021-06-14 15:30:46 +00:00
parent 84fd8eee22
commit 4465770b8f
No known key found for this signature in database
GPG Key ID: 776260438EB23A3A
6 changed files with 82 additions and 0 deletions

59
.drone.yml Normal file
View File

@ -0,0 +1,59 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: format
image: rust:1.52
commands:
- rustup component add rustfmt
- cargo fmt --all -- --check
- name: vendor
image: rust:1.52
volumes:
- name: cache
path: /vendor
commands:
- mkdir .cargo
- cargo vendor /vendor > .cargo/config
- name: test
image: rust:1.52
volumes:
- name: cache
path: /vendor
commands:
- cargo test
- name: build
image: rust:1.52
volumes:
- name: cache
path: /vendor
commands:
- cargo build --release
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.hillion.co.uk
files:
- target/release/plot
checksum:
- sha256
when:
event:
- tag
volumes:
- name: cache
temp: {}
---
kind: signature
hmac: d7c37edb0847754a42bb7ce0a5d1107690cd061201ac6e6154eef9845bbe0e80
...

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

5
Cargo.lock generated Normal file
View File

@ -0,0 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "plot"
version = "0.1.0"

5
Cargo.toml Normal file
View File

@ -0,0 +1,5 @@
[workspace]
members = [
"plot",
]

9
plot/Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "plot"
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
plot/src/main.rs Normal file
View File

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