Upload compiled executable as an artifact

This commit is contained in:
Simon Sapin 2018-08-29 18:22:44 +02:00
parent ad51acb554
commit 59ab0f85d5
2 changed files with 8 additions and 4 deletions

View file

@ -3,8 +3,5 @@
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
export PATH="$HOME/.cargo/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH"
echo HOME=$HOME
which cargo
cd something-rust cd something-rust
cargo run cargo run --release

View file

@ -33,6 +33,13 @@ payload = {
./child-task.sh ./child-task.sh
""" % os.environ, """ % 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 # https://docs.taskcluster.net/docs/reference/workers/docker-worker/docs/features#feature-taskclusterproxy