chore: fix github actions

This commit is contained in:
appflowy 2022-06-15 20:25:55 +08:00
parent 812bca616c
commit 68f7f25ca8
2 changed files with 18 additions and 15 deletions

View File

@ -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

View File

@ -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