AppFlowy/.github/workflows/ci.yaml

78 lines
2.5 KiB
YAML
Raw Normal View History

2021-11-16 04:32:43 +00:00
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
2021-11-23 09:53:08 +00:00
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-24 05:51:40 +00:00
working-directory: frontend
run: make install_rust
- name: Checkout Flutter
2021-11-24 05:51:40 +00:00
uses: actions/checkout@v2
with:
repository: flutter/flutter
path: flutter
2021-11-23 09:53:08 +00:00
- name: Flutter
2021-11-24 05:51:40 +00:00
working-directory: flutter
2021-11-23 09:53:08 +00:00
run: |
2021-11-24 05:51:40 +00:00
echo "$(pwd)/bin" >> $GITHUB_PATH
export PATH="$PATH:$(pwd)/bin"
2021-12-10 06:43:57 +00:00
flutter channel stable
2021-11-23 09:53:08 +00:00
flutter config --enable-macos-desktop
flutter doctor
2021-11-23 08:54:40 +00:00
- name: Deps
2021-11-24 05:51:40 +00:00
working-directory: frontend
2021-11-23 08:54:40 +00:00
run: |
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo make flowy_dev
- name: Build
2021-11-24 05:51:40 +00:00
working-directory: frontend
run: cargo make --profile production-mac-x86 appflowy
2021-11-21 03:53:26 +00:00
build-ubuntu:
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:53:26 +00:00
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
2021-12-06 00:41:14 +00:00
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
2021-11-21 03:06:24 +00:00
- name: Rust
run: |
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
2022-01-23 03:34:41 +00:00
rustup toolchain install stable
rustup default stable
- name: Checkout Flutter
uses: actions/checkout@v2
with:
repository: flutter/flutter
path: flutter
2021-11-21 03:06:24 +00:00
- name: Flutter
working-directory: flutter
2021-11-21 03:06:24 +00:00
run: |
echo "$(pwd)/bin" >> $GITHUB_PATH
export PATH="$PATH:$(pwd)/bin"
2021-12-10 06:43:57 +00:00
flutter channel stable
2021-11-21 03:06:24 +00:00
flutter config --enable-linux-desktop
flutter doctor
- name: Deps
2021-11-24 05:51:40 +00:00
working-directory: frontend
2021-11-21 03:31:37 +00:00
run: |
cargo install --force cargo-make
cargo install --force duckscript_cli
cargo make flowy_dev
2021-11-23 08:54:40 +00:00
- name: Build
working-directory: frontend
run: cargo make --profile production-linux-x86 appflowy