Skip to content

Commit 28422cc

Browse files
committed
format.yml CI flow: use a 3rd party action to setup rust
1 parent 4cf3cd7 commit 28422cc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/format.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ jobs:
1717
with:
1818
llvm-version: 22
1919

20-
- name: Install Rust toolchain
21-
run: |
22-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.94.0
23-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
20+
- name: Setup Rust
21+
uses: dtolnay/rust-toolchain@master
22+
with:
23+
toolchain: 1.94.0
24+
components: rustfmt
2425

2526
- name: Check C++ formatting
2627
run: find cpp2rust tests -name '*.cpp' -o -name '*.h' -o -name '*.c' | xargs clang-format --dry-run --Werror

0 commit comments

Comments
 (0)