AppFlowy/.github/workflows/ci.yaml

55 lines
1.9 KiB
YAML
Raw Normal View History

2021-11-16 04:32:43 +00:00
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
2021-11-21 03:06:24 +00:00
build-macos:
2021-11-16 04:32:43 +00:00
runs-on: macOS-latest
steps:
- name: Checkout
2021-11-21 03:06:24 +00:00
uses: actions/checkout@v2
2021-11-20 06:41:27 +00:00
- name: Env install
2021-11-20 01:49:48 +00:00
run: cd frontend && make install_rust && make install_cargo_make && cargo make install_targets
2021-11-20 06:30:32 +00:00
- name: Run frontend tests
run: cd frontend/rust-lib && cargo test
- name: Run shared-lib tests
run: cd shared-lib && cargo test
2021-11-21 03:06:24 +00:00
build-linux:
2021-11-21 03:08:41 +00:00
runs-on: ubuntu-latest
2021-11-21 03:06:24 +00:00
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Packages
2021-11-21 03:09:43 +00:00
run: sudo apt-get update && sudo apt-get install -y curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev
2021-11-21 03:06:24 +00:00
- name: Rust
run: |
2021-11-21 03:15:01 +00:00
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2021-11-21 03:06:24 +00:00
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly
2021-11-21 03:47:31 +00:00
- name: Dart
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 update
sudo apt install -y dart
2021-11-21 03:06:24 +00:00
- name: Flutter
run: |
git clone https://github.com/flutter/flutter.git
cd flutter
echo "export PATH=\$PATH:"`pwd`"/bin" >> ~/.profile
export PATH="$PATH:`pwd`/bin"
flutter channel dev
flutter config --enable-linux-desktop
flutter doctor
- name: Deps
2021-11-21 03:31:37 +00:00
run: |
cargo install --force cargo-make
cargo install --force duckscript_cli
cd frontend
cargo make flowy_dev
cargo make -p development-linux-x86 pb
cargo make -p development-linux-x86 appflowy-linux-dev