mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
Update rust_general.yml
This commit is contained in:
parent
57f8226b38
commit
841d5e6fd0
1 changed files with 8 additions and 6 deletions
14
.github/workflows/rust_general.yml
vendored
14
.github/workflows/rust_general.yml
vendored
|
@ -14,12 +14,14 @@ jobs:
|
|||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
components: rustfmt
|
||||
- name: Install Rust
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
source $HOME/.cargo/env
|
||||
rustup toolchain install nightly
|
||||
rustup default nightly
|
||||
- run: rustup component add rustfmt
|
||||
working-directory: frontend/rust-lib
|
||||
- run: cargo fmt --all -- --check
|
||||
working-directory: frontend/rust-lib
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue