From 68f7f25ca89de5bff0909309d98014e6f7b0970d Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 15 Jun 2022 20:25:55 +0800 Subject: [PATCH] chore: fix github actions --- .github/workflows/dart_lint.yml | 4 ++++ .github/workflows/rust_lint.yml | 29 ++++++++++++++--------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dart_lint.yml b/.github/workflows/dart_lint.yml index ca0536906e..bd7eac7969 100644 --- a/.github/workflows/dart_lint.yml +++ b/.github/workflows/dart_lint.yml @@ -25,6 +25,10 @@ jobs: with: flutter-version: '3.0.0' channel: "stable" + - name: Build FlowySDK + working-directory: frontend + run: | + cargo make --profile development-linux-x86 flowy-sdk-dev - name: Deps Flutter run: flutter packages pub get working-directory: frontend/app_flowy diff --git a/.github/workflows/rust_lint.yml b/.github/workflows/rust_lint.yml index ac650b197b..3be0862b88 100644 --- a/.github/workflows/rust_lint.yml +++ b/.github/workflows/rust_lint.yml @@ -17,25 +17,24 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 - with: - toolchain: 'stable-2022-01-20' - override: true + with: + toolchain: 'stable-2022-01-20' + override: true + - name: Build FlowySDK + working-directory: frontend + run: | + cargo make --profile development-linux-x86 flowy-sdk-dev + - run: rustup component add rustfmt working-directory: frontend/rust-lib - - run: cargo fmt --all -- --check + - name: rustfmt + run: cargo fmt --all -- --check working-directory: frontend/rust-lib/ - rust-clippy: - runs-on: ubuntu-latest - name: Clippy - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: 'stable-2022-01-20' - override: true - run: rustup component add clippy + working-directory: frontend/rust-lib + - name: clippy + run: cargo clippy --no-default-features working-directory: frontend/rust-lib - - run: cargo clippy --no-default-features - working-directory: frontend/rust-lib \ No newline at end of file +