mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Ci/build scripts (#1487)
* chore: rename flowy_dev name * chore: rename tasks Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
parent
69a7ae5201
commit
149c2a2725
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@ -78,10 +78,10 @@ jobs:
|
||||
cargo install cargo-make
|
||||
cargo install duckscript_cli
|
||||
|
||||
- name: Cargo make flowy_dev
|
||||
- name: Cargo make appflowy-deps-tools
|
||||
working-directory: frontend
|
||||
run: |
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
||||
- name: Config Flutter
|
||||
run: |
|
||||
|
4
.github/workflows/dart_lint.yml
vendored
4
.github/workflows/dart_lint.yml
vendored
@ -64,7 +64,7 @@ jobs:
|
||||
- name: Cargo make flowy dev
|
||||
working-directory: frontend
|
||||
run: |
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
||||
- name: Flutter Deps
|
||||
run: flutter packages pub get
|
||||
@ -73,7 +73,7 @@ jobs:
|
||||
- name: Build FlowySDK
|
||||
working-directory: frontend
|
||||
run: |
|
||||
cargo make --profile development-linux-x86_64 flowy-sdk-dev
|
||||
cargo make --profile development-linux-x86_64 appflowy-sdk-dev
|
||||
|
||||
- name: Flutter Code Generation
|
||||
working-directory: frontend/app_flowy
|
||||
|
2
.github/workflows/dart_test.yml
vendored
2
.github/workflows/dart_test.yml
vendored
@ -54,7 +54,7 @@ jobs:
|
||||
working-directory: frontend
|
||||
run: |
|
||||
cargo install cargo-make
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
||||
- name: Flutter Deps
|
||||
working-directory: frontend/app_flowy
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -63,7 +63,7 @@ jobs:
|
||||
source $HOME/.cargo/env
|
||||
cargo install --force cargo-make
|
||||
cargo install --force duckscript_cli
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
||||
- name: Build Linux app
|
||||
working-directory: frontend
|
||||
@ -161,7 +161,7 @@ jobs:
|
||||
source $HOME/.cargo/env
|
||||
cargo install --force cargo-make
|
||||
cargo install --force duckscript_cli
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
||||
- name: Build macOS app for x86_64
|
||||
working-directory: frontend
|
||||
@ -234,7 +234,7 @@ jobs:
|
||||
vcpkg integrate install
|
||||
cargo install --force cargo-make
|
||||
cargo install --force duckscript_cli
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
||||
- name: Build Windows app
|
||||
working-directory: frontend
|
||||
|
4
.github/workflows/rust_lint.yml
vendored
4
.github/workflows/rust_lint.yml
vendored
@ -39,12 +39,12 @@ jobs:
|
||||
working-directory: frontend
|
||||
run: |
|
||||
cargo install cargo-make
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
||||
- name: Build FlowySDK
|
||||
working-directory: frontend
|
||||
run: |
|
||||
cargo make --profile development-linux-x86_64 flowy-sdk-dev
|
||||
cargo make --profile development-linux-x86_64 appflowy-sdk-dev
|
||||
|
||||
- run: rustup component add rustfmt
|
||||
working-directory: frontend/rust-lib
|
||||
|
2
frontend/.vscode/tasks.json
vendored
2
frontend/.vscode/tasks.json
vendored
@ -48,7 +48,7 @@
|
||||
{
|
||||
"label": "AF: build_flowy_sdk_for_android",
|
||||
"type": "shell",
|
||||
"command": "cargo make --profile development-android flowy-sdk-dev-android",
|
||||
"command": "cargo make --profile development-android appflowy-sdk-dev-android",
|
||||
"group": "build",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}"
|
||||
|
@ -1,3 +1,3 @@
|
||||
echo "Start building rust sdk"
|
||||
rustup show
|
||||
cargo make --profile development-windows-x86 flowy-sdk-dev
|
||||
cargo make --profile development-windows-x86 appflowy-sdk-dev
|
@ -17,15 +17,15 @@ rustup show
|
||||
|
||||
case "$FLOWY_DEV_ENV" in
|
||||
Linux)
|
||||
cargo make --profile "development-linux-$(uname -m)" flowy-sdk-dev
|
||||
cargo make --profile "development-linux-$(uname -m)" appflowy-sdk-dev
|
||||
;;
|
||||
|
||||
macOS)
|
||||
cargo make --profile "development-mac-$(uname -m)" flowy-sdk-dev
|
||||
cargo make --profile "development-mac-$(uname -m)" appflowy-sdk-dev
|
||||
;;
|
||||
|
||||
Windows)
|
||||
cargo make --profile development-windows flowy-sdk-dev
|
||||
cargo make --profile development-windows appflowy-sdk-dev
|
||||
;;
|
||||
|
||||
*)
|
||||
|
@ -33,7 +33,7 @@ cd appflowy/frontend && \
|
||||
source $HOME/.cargo/env && \
|
||||
cargo install --force cargo-make && \
|
||||
cargo install --force duckscript_cli && \
|
||||
cargo make flowy_dev && \
|
||||
cargo make appflowy-deps-tools && \
|
||||
cargo make -p production-linux-x86_64 appflowy-linux
|
||||
|
||||
CMD ["/home/makepkg/appflowy/frontend/app_flowy/build/linux/x64/release/bundle/app_flowy"]
|
||||
|
@ -73,4 +73,4 @@ cargo install --force duckscript_cli
|
||||
|
||||
# Check prerequisites
|
||||
printMessage "Checking prerequisites."
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
@ -72,4 +72,4 @@ cargo install --force duckscript_cli
|
||||
|
||||
# Check prerequisites
|
||||
printMessage "Checking prerequisites."
|
||||
cargo make flowy_dev
|
||||
cargo make appflowy-deps-tools
|
||||
|
@ -92,4 +92,4 @@ vcpkg integrate install
|
||||
|
||||
# Check prerequisites
|
||||
printMessage "Checking prerequisites."
|
||||
PATH="$PATH;$LOCALAPPDATA\Pub\Cache\bin" bash -c '$USERPROFILE/.cargo/bin/cargo make flowy_dev'
|
||||
PATH="$PATH;$LOCALAPPDATA\Pub\Cache\bin" bash -c '$USERPROFILE/.cargo/bin/cargo make appflowy-deps-tools'
|
||||
|
@ -1,34 +1,34 @@
|
||||
# cargo make --profile production task
|
||||
|
||||
# Run the task with profile, e.g.
|
||||
# cargo make --profile development-mac flowy-sdk-dev
|
||||
# cargo make --profile production-windows-x86 flowy-sdk-dev
|
||||
# cargo make --profile development-mac appflowy-sdk-dev
|
||||
# cargo make --profile production-windows-x86 appflowy-sdk-dev
|
||||
|
||||
[tasks.env_check]
|
||||
dependencies = ["echo_env", "install_protobuf"]
|
||||
condition = { env_set = [ "BUILD_FLAG", "RUST_COMPILE_TARGET", "CRATE_TYPE", "TARGET_OS"], channels = ["stable"] }
|
||||
|
||||
[tasks.flowy-sdk-dev]
|
||||
mac_alias = "flowy-sdk-dev-macos"
|
||||
windows_alias = "flowy-sdk-dev-windows"
|
||||
linux_alias = "flowy-sdk-dev-linux"
|
||||
[tasks.appflowy-sdk-dev]
|
||||
mac_alias = "appflowy-sdk-dev-macos"
|
||||
windows_alias = "appflowy-sdk-dev-windows"
|
||||
linux_alias = "appflowy-sdk-dev-linux"
|
||||
|
||||
[tasks.flowy-sdk-dev-android]
|
||||
[tasks.appflowy-sdk-dev-android]
|
||||
category = "Build"
|
||||
dependencies = ["env_check"]
|
||||
run_task = { name = ["setup-crate-type","sdk-build-android", "restore-crate-type"] }
|
||||
|
||||
[tasks.flowy-sdk-dev-macos]
|
||||
[tasks.appflowy-sdk-dev-macos]
|
||||
category = "Build"
|
||||
dependencies = ["env_check"]
|
||||
run_task = { name = ["setup-crate-type","sdk-build", "post-desktop", "restore-crate-type"] }
|
||||
|
||||
[tasks.flowy-sdk-dev-windows]
|
||||
[tasks.appflowy-sdk-dev-windows]
|
||||
category = "Build"
|
||||
dependencies = ["env_check"]
|
||||
run_task = { name = ["setup-crate-type","sdk-build", "post-desktop", "restore-crate-type"] }
|
||||
|
||||
[tasks.flowy-sdk-dev-linux]
|
||||
[tasks.appflowy-sdk-dev-linux]
|
||||
category = "Build"
|
||||
dependencies = ["env_check"]
|
||||
run_task = { name = ["setup-crate-type","sdk-build", "post-desktop", "restore-crate-type"] }
|
||||
@ -86,7 +86,7 @@ script = [
|
||||
script_runner = "@duckscript"
|
||||
|
||||
#
|
||||
[tasks.flowy-sdk-release]
|
||||
[tasks.appflowy-sdk-release]
|
||||
description = "Build flowy sdk in release mode"
|
||||
category = "Build"
|
||||
dependencies = ["env_check"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[tasks.flowy_dev]
|
||||
[tasks.appflowy-deps-tools]
|
||||
run_task = { name = ["install_prerequests","install_diesel", "install_protobuf"] }
|
||||
|
||||
[tasks.install_windows_deps.windows]
|
||||
|
@ -4,16 +4,16 @@ windows_alias = "appflowy-windows"
|
||||
linux_alias = "appflowy-linux"
|
||||
|
||||
[tasks.appflowy-macos]
|
||||
dependencies = ["flowy-sdk-release"]
|
||||
dependencies = ["appflowy-sdk-release"]
|
||||
run_task = { name = ["code_generation", "set-app-version", "flutter-build", "copy-to-product"] }
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.appflowy-windows]
|
||||
dependencies = ["flowy-sdk-release"]
|
||||
dependencies = ["appflowy-sdk-release"]
|
||||
run_task = { name = ["code_generation", "set-app-version", "flutter-build", "copy-to-product"] }
|
||||
|
||||
[tasks.appflowy-linux]
|
||||
dependencies = ["flowy-sdk-release"]
|
||||
dependencies = ["appflowy-sdk-release"]
|
||||
run_task = { name = ["code_generation", "set-app-version", "flutter-build", "copy-to-product", "create-release-archive"] }
|
||||
script_runner = "@shell"
|
||||
|
||||
@ -23,16 +23,16 @@ windows_alias = "appflowy-windows-dev"
|
||||
linux_alias = "appflowy-linux-dev"
|
||||
|
||||
[tasks.appflowy-macos-dev]
|
||||
dependencies = ["flowy-sdk-dev"]
|
||||
dependencies = ["appflowy-sdk-dev"]
|
||||
run_task = { name = ["code_generation", "set-app-version", "flutter-build", "copy-to-product"] }
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.appflowy-windows-dev]
|
||||
dependencies = ["flowy-sdk-dev"]
|
||||
dependencies = ["appflowy-sdk-dev"]
|
||||
run_task = { name = ["code_generation", "set-app-version", "flutter-build", "copy-to-product"] }
|
||||
|
||||
[tasks.appflowy-linux-dev]
|
||||
dependencies = ["flowy-sdk-dev"]
|
||||
dependencies = ["appflowy-sdk-dev"]
|
||||
run_task = { name = ["code_generation", "set-app-version", "flutter-build", "copy-to-product"] }
|
||||
script_runner = "@shell"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user