-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from guchengxi1994/master
arm64 linux test
- Loading branch information
Showing
17 changed files
with
537 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Build Linux App | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
qemu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: 3.22.0 | ||
|
||
- name: Cache pubspec | ||
id: cache-pubspec | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ env.FLUTTER_HOME }}/.pub-cache | ||
**/.flutter-plugins | ||
**/.flutter-plugin-dependencies | ||
**/.dart_tool/package_config.json | ||
key: pubspec-${{ hashFiles('**/pubspec.lock') }} | ||
restore-keys: | | ||
pubspec- | ||
- name: Install Rust Toolchain | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
source $HOME/.cargo/env | ||
rustup default stable | ||
- name: install dependencies | ||
run: | | ||
sudo wget -qO /etc/apt/trusted.gpg.d/dart_linux_signing_key.asc https://dl-ssl.google.com/linux/linux_signing_key.pub | ||
sudo apt-get update | ||
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev -y | ||
chmod +x /home/runner/work/all_in_one/all_in_one/rust_builder/cargokit/run_build_tool.sh | ||
- name: Get dependencies | ||
run: flutter pub get | ||
|
||
- name: Bump build number | ||
run: | | ||
flutter pub global activate cider | ||
- name: Build Linux app | ||
run: flutter build linux --release -v | ||
|
||
- name: Set tag name | ||
run: echo "tag_name=v$(cider version)" >> $GITHUB_ENV | ||
|
||
- name: List files in build directory | ||
run: ls -la build/linux/x64/release/bundle/ | ||
|
||
# - name: Upload build artifacts | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: linux-app | ||
# path: build/linux/x64/release/bundle/ | ||
|
||
- name: Archive release | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'linux-arm64.zip' | ||
directory: build/linux/x64/release/bundle/ | ||
|
||
- name: Publish release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifacts: build/linux/x64/release/bundle/linux-arm64.zip | ||
generateReleaseNotes: true | ||
tag: ${{ env.tag_name }} | ||
token: ${{ secrets.RELEASE_TOKEN }} |
Git LFS file not shown
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// ignore: unused_import | ||
import 'dart:convert'; | ||
|
||
import 'package:all_in_one/llm/editor/models/datasource.dart'; | ||
import 'package:all_in_one/llm/langchain/notifiers/tool_notifier.dart'; | ||
import 'package:appflowy_editor/appflowy_editor.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_expandable_fab/flutter_expandable_fab.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
|
||
import 'editor.dart'; | ||
|
||
class ComposeScreen extends ConsumerStatefulWidget { | ||
const ComposeScreen({super.key}); | ||
|
||
@override | ||
ConsumerState<ComposeScreen> createState() => _ComposeScreenState(); | ||
} | ||
|
||
class _ComposeScreenState extends ConsumerState<ComposeScreen> { | ||
late EditorState _editorState; | ||
late WidgetBuilder _widgetBuilder; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
|
||
_widgetBuilder = (context) => Editor( | ||
// jsonString: Future(() => _jsonString), | ||
datasource: Datasource(type: DatasourceType.json, content: ""), | ||
onEditorStateChange: (editorState) { | ||
_editorState = editorState; | ||
}, | ||
showTemplateFeatures: false, | ||
); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
floatingActionButtonLocation: ExpandableFab.location, | ||
floatingActionButton: ExpandableFab( | ||
distance: 50, | ||
type: ExpandableFabType.side, | ||
children: [ | ||
FloatingActionButton.small( | ||
tooltip: "back", | ||
heroTag: "", | ||
onPressed: () { | ||
ref.read(toolProvider.notifier).jumpTo(0); | ||
}, | ||
child: const Icon(Icons.chevron_left), | ||
), | ||
], | ||
), | ||
extendBodyBehindAppBar: PlatformExtension.isDesktopOrWeb, | ||
body: SafeArea(child: _widgetBuilder(context)), | ||
); | ||
} | ||
} |
Oops, something went wrong.