From 59ab0f85d5e4780050f2b3739c2ad698417122dc Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 29 Aug 2018 18:22:44 +0200 Subject: [PATCH] Upload compiled executable as an artifact --- child-task.sh | 5 +---- decision-task.py | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/child-task.sh b/child-task.sh index 7e589be8409..8a5f05f8283 100755 --- a/child-task.sh +++ b/child-task.sh @@ -3,8 +3,5 @@ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y export PATH="$HOME/.cargo/bin:$PATH" -echo HOME=$HOME -which cargo - cd something-rust -cargo run +cargo run --release diff --git a/decision-task.py b/decision-task.py index f9920c4d525..7f887ba8a0b 100644 --- a/decision-task.py +++ b/decision-task.py @@ -33,6 +33,13 @@ payload = { ./child-task.sh """ % os.environ, ], + "artifacts": { + "public/executable": { + "type": "file", + "path": "/repo/something-rust/target/release/something-rust", + "expires": taskcluster.fromNowJSON("1 month"), + }, + }, }, } # https://docs.taskcluster.net/docs/reference/workers/docker-worker/docs/features#feature-taskclusterproxy