aboutsummaryrefslogtreecommitdiff
path: root/.github/ci
diff options
context:
space:
mode:
Diffstat (limited to '.github/ci')
-rwxr-xr-x.github/ci/rust.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/ci/rust.sh b/.github/ci/rust.sh
new file mode 100755
index 000000000..af7f336c1
--- /dev/null
+++ b/.github/ci/rust.sh
@@ -0,0 +1,21 @@
1#!/bin/bash
2## on push branch=main
3## on push branch~=gh-readonly-queue/main/.*
4## on pull_request
5
6set -euo pipefail
7
8echo Hello World!
9
10export RUSTUP_HOME=/ci/cache/rustup
11export CARGO_HOME=/ci/cache/cargo
12export CARGO_TARGET_DIR=/ci/cache/target
13if [ -f /ci/secrets/teleprobe-token.txt ]; then
14 echo Got teleprobe token!
15 export TELEPROBE_TOKEN=$(cat /ci/secrets/teleprobe-token.txt)
16fi
17
18hashtime restore /ci/cache/filetime.json || true
19hashtime save /ci/cache/filetime.json
20
21./ci.sh