Build some Rust code

This commit is contained in:
Simon Sapin 2018-08-29 17:56:35 +02:00
parent b19d28b997
commit d537bac018
8 changed files with 33 additions and 2 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
target

View file

@ -1 +0,0 @@
print("hello from a child task!")

6
child-task.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
cd something-rust
rustup run --install cargo run

View file

@ -30,7 +30,7 @@ payload = {
git clone %(DECISION_TASK_CLONE_URL)s repo && git clone %(DECISION_TASK_CLONE_URL)s repo &&
cd repo && cd repo &&
git checkout %(DECISION_TASK_COMMIT_SHA)s && git checkout %(DECISION_TASK_COMMIT_SHA)s &&
python2.7 child-task.py ./child-task.sh
""" % os.environ, """ % os.environ,
], ],
}, },

14
something-rust/Cargo.lock generated Normal file
View file

@ -0,0 +1,14 @@
[[package]]
name = "matches"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "something-rust"
version = "0.1.0"
dependencies = [
"matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
]
[metadata]
"checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"

View file

@ -0,0 +1,7 @@
[package]
name = "something-rust"
version = "0.1.0"
authors = ["Simon Sapin"]
[dependencies]
matches = "0.1"

View file

@ -0,0 +1 @@
1.28.0

View file

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