diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-05-29 19:46:46 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-05-29 19:51:06 +0200 |
| commit | 421ee4dfbfbbdc007265498d4f529687c16d89af (patch) | |
| tree | 82e888ad5ea0af46fd33188fdf923e3d2ecd0a1a /.github/ci/build.sh | |
| parent | 46961cfdf72a3b5d54b241a41d9f2496c6dc6229 (diff) | |
ci: add stable build, add tests.
Diffstat (limited to '.github/ci/build.sh')
| -rwxr-xr-x | .github/ci/build.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/ci/build.sh b/.github/ci/build.sh new file mode 100755 index 000000000..1c3a7f3b0 --- /dev/null +++ b/.github/ci/build.sh | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | ## on push branch~=gh-readonly-queue/main/.* | ||
| 3 | ## on pull_request | ||
| 4 | |||
| 5 | set -euo pipefail | ||
| 6 | |||
| 7 | export RUSTUP_HOME=/ci/cache/rustup | ||
| 8 | export CARGO_HOME=/ci/cache/cargo | ||
| 9 | export CARGO_TARGET_DIR=/ci/cache/target | ||
| 10 | if [ -f /ci/secrets/teleprobe-token.txt ]; then | ||
| 11 | echo Got teleprobe token! | ||
| 12 | export TELEPROBE_TOKEN=$(cat /ci/secrets/teleprobe-token.txt) | ||
| 13 | fi | ||
| 14 | |||
| 15 | hashtime restore /ci/cache/filetime.json || true | ||
| 16 | hashtime save /ci/cache/filetime.json | ||
| 17 | |||
| 18 | ./ci.sh | ||
