diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-05-26 23:05:18 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-05-29 18:15:53 +0200 |
| commit | 7b2a39a6fb62e0a1483b31e2d24dec71013558e7 (patch) | |
| tree | 26f65ba38752dac882f1a81b7b1209642f632759 /.github/ci/rust.sh | |
| parent | bab03a39273d1a88c53e219fffbed34225b3c72f (diff) | |
Switch to Bender for CI.
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 | ||
