ci: reduce build time (#3519)

This commit is contained in:
Mohammad Zolfaghari
2023-10-23 17:47:11 +03:30
committed by GitHub
parent cd6e133c86
commit 25a98cda81
21 changed files with 430 additions and 104 deletions

View File

@ -47,8 +47,10 @@ RUN flutter doctor
RUN dart pub global activate protoc_plugin 20.0.1
# Install build dependencies for AppFlowy
RUN sudo pacman -S --noconfirm git libkeybinder3 sqlite clang rsync libnotify
RUN source ~/.cargo/env && cargo install --force cargo-make duckscript_cli
RUN yay -S --noconfirm jemalloc4 cargo-make cargo-binstall
RUN sudo pacman -S --noconfirm git libkeybinder3 sqlite clang rsync libnotify rocksdb zstd
RUN sudo ln -s /usr/bin/sha1sum /usr/bin/shasum
RUN source ~/.cargo/env && cargo binstall duckscript_cli -y
# Build AppFlowy
COPY . /appflowy
@ -58,7 +60,7 @@ RUN cd frontend && \
source ~/.cargo/env && \
cargo make appflowy-flutter-deps-tools && \
cargo make flutter_clean && \
cargo make -p production-linux-x86_64 appflowy-linux
OPENSSL_STATIC=1 ZSTD_SYS_USE_PKG_CONFIG=1 ROCKSDB_LIB_DIR="/usr/lib/" cargo make -p production-linux-x86_64 appflowy-linux
#================