Update rust_general.yml

This commit is contained in:
AppFlowy.IO
2021-11-30 18:08:01 +08:00
committed by GitHub
parent 57f8226b38
commit 841d5e6fd0

View File

@ -14,12 +14,14 @@ jobs:
name: Rustfmt name: Rustfmt
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Install Rust
- uses: actions-rs/toolchain@v1 run: |
with: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
toolchain: nightly source $HOME/.cargo/env
override: true rustup toolchain install nightly
components: rustfmt rustup default nightly
- run: rustup component add rustfmt
working-directory: frontend/rust-lib
- run: cargo fmt --all -- --check - run: cargo fmt --all -- --check
working-directory: frontend/rust-lib working-directory: frontend/rust-lib