Skip to content

ci: fix the toolchain actions #1187

ci: fix the toolchain actions

ci: fix the toolchain actions #1187

Workflow file for this run

name: Code formatting
on:
- push
- pull_request
jobs:
fmt_check:
name: Fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /install-rustup
chmod +x /install-rustup
/install-rustup --default-toolchain $(cat rust-toolchain) --component rustfmt -y
- name: Check code formatting
run: cargo fmt -- --check