Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

Update rust_general.yml

AppFlowy.IO841d5e6fd0ac
diff --git a/.github/workflows/rust_general.yml b/.github/workflows/rust_general.yml
index 0e1b898e6a..e66c5c3c71 100644
--- a/.github/workflows/rust_general.yml
+++ b/.github/workflows/rust_general.yml
@@ -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