mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
commit
4e9472c3e8
41
.github/workflows/ci.yaml
vendored
41
.github/workflows/ci.yaml
vendored
@ -5,18 +5,47 @@ on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
jobs:
|
||||
build:
|
||||
build-macos:
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v2
|
||||
- name: Env install
|
||||
run: cd frontend && make install_rust && make install_cargo_make && cargo make install_targets
|
||||
- name: Run frontend tests
|
||||
run: cd frontend/rust-lib && cargo test
|
||||
- name: Run shared-lib tests
|
||||
run: cd shared-lib && cargo test
|
||||
|
||||
|
||||
|
||||
|
||||
build-ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Packages
|
||||
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 wget -qO /etc/apt/sources.list.d/dart_stable.list https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y dart curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev
|
||||
- name: Rust
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
source $HOME/.cargo/env
|
||||
rustup toolchain install nightly
|
||||
rustup default nightly
|
||||
- name: Flutter
|
||||
run: |
|
||||
git clone https://github.com/flutter/flutter.git
|
||||
cd flutter
|
||||
echo `pwd`"/bin" >> $GITHUB_PATH
|
||||
export PATH="$PATH:`pwd`/bin"
|
||||
flutter channel dev
|
||||
flutter config --enable-linux-desktop
|
||||
flutter doctor
|
||||
- name: Deps
|
||||
run: |
|
||||
cd frontend
|
||||
cargo install --force cargo-make
|
||||
cargo install --force duckscript_cli
|
||||
cargo make flowy_dev
|
||||
cargo make -p development-linux-x86 appflowy-linux-dev
|
||||
|
@ -24,4 +24,4 @@ dialoguer = "0.8.0"
|
||||
toml = "0.5.8"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
pathdiff = "0.2.0"
|
||||
itertools = "0.10"
|
||||
itertools = "0.10"
|
||||
|
Loading…
Reference in New Issue
Block a user