diff options
Diffstat (limited to '.github/ci/rust.sh')
| -rwxr-xr-x | .github/ci/rust.sh | 21 |
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 | |||
| 6 | set -euo pipefail | ||
| 7 | |||
| 8 | echo Hello World! | ||
| 9 | |||
| 10 | export RUSTUP_HOME=/ci/cache/rustup | ||
| 11 | export CARGO_HOME=/ci/cache/cargo | ||
| 12 | export CARGO_TARGET_DIR=/ci/cache/target | ||
| 13 | if [ -f /ci/secrets/teleprobe-token.txt ]; then | ||
| 14 | echo Got teleprobe token! | ||
| 15 | export TELEPROBE_TOKEN=$(cat /ci/secrets/teleprobe-token.txt) | ||
| 16 | fi | ||
| 17 | |||
| 18 | hashtime restore /ci/cache/filetime.json || true | ||
| 19 | hashtime save /ci/cache/filetime.json | ||
| 20 | |||
| 21 | ./ci.sh | ||
