This commit is contained in:
parent
f72b469c46
commit
5278b313e1
1 changed files with 5 additions and 6 deletions
|
|
@ -10,12 +10,11 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Install build tools
|
||||
run: sudo apt-get update && sudo apt-get install -y build-essential
|
||||
- name: Install build tools and Rust
|
||||
run: |
|
||||
apt-get update && apt-get install -y build-essential curl ca-certificates
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --component rustfmt,clippy
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Format check
|
||||
run: cargo fmt --check
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue