fix: build flowy sdk

This commit is contained in:
appflowy 2022-06-15 20:55:55 +08:00
parent a0f064b15e
commit 3105f30ea6
2 changed files with 12 additions and 6 deletions

View File

@ -25,6 +25,9 @@ jobs:
with:
flutter-version: '3.0.0'
channel: "stable"
- uses: actions-rs/toolchain@v1
with:
toolchain: 'stable-2022-01-20'
- name: Rust Deps
working-directory: frontend
@ -32,18 +35,21 @@ jobs:
cargo install cargo-make
cargo make flowy_dev
- name: Build FlowySDK
working-directory: frontend
run: |
cargo make --profile development-linux-x86 flowy-sdk-dev
- name: Deps Flutter
- name: Flutter Deps
run: flutter packages pub get
working-directory: frontend/app_flowy
- name: Code Generation
working-directory: frontend/app_flowy
run: |
flutter packages pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
flutter packages pub run build_runner build --delete-conflicting-outputs
- name: Build FlowySDK
working-directory: frontend
run: |
cargo make --profile development-linux-x86 flowy-sdk-dev
- name: Run Flutter Analyzer
working-directory: frontend/app_flowy
run: flutter analyze

View File

@ -43,7 +43,7 @@ jobs:
shared-lib/target
key: ${{ runner.os }}-rust-rust-lib-share-lib-${{ steps.rust_toolchain.outputs.rustc_hash }}-${{ hashFiles('./frontend/rust-lib/Cargo.toml') }}
- name: Deps Flutter
- name: Flutter Deps
working-directory: frontend/app_flowy
run: |
flutter config --enable-linux-desktop