aboutsummaryrefslogtreecommitdiff
path: root/.github/ci/rustfmt.sh
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-12-21 14:57:49 +0100
committerDario Nieuwenhuis <[email protected]>2023-12-21 15:03:57 +0100
commit8b36a32ed5d834b23e970d5b723dd7df1f1c94a2 (patch)
treefc64810b57db758d98dc3424dd4ae40818fa71f2 /.github/ci/rustfmt.sh
parent530ead5fdeba97dd7d84798463436d1c75bbe96e (diff)
ci: use beta, add secondary nightly ci.
Diffstat (limited to '.github/ci/rustfmt.sh')
-rwxr-xr-x.github/ci/rustfmt.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/ci/rustfmt.sh b/.github/ci/rustfmt.sh
new file mode 100755
index 000000000..369239cfe
--- /dev/null
+++ b/.github/ci/rustfmt.sh
@@ -0,0 +1,12 @@
1#!/bin/bash
2## on push branch~=gh-readonly-queue/main/.*
3## on pull_request
4
5set -euo pipefail
6
7export RUSTUP_HOME=/ci/cache/rustup
8export CARGO_HOME=/ci/cache/cargo
9export CARGO_TARGET_DIR=/ci/cache/target
10mv rust-toolchain-nightly.toml rust-toolchain.toml
11
12find . -name '*.rs' -not -path '*target*' | xargs rustfmt --check --skip-children --unstable-features --edition 2021