Skip to content

[*] linux

[*] linux #110

Workflow file for this run

name: build
on:
push:
branches: [ master ]
jobs:
lifuren:
name: Build lifuren
# https://docs.github.com/zh/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout deps
run: |
git submodule update --init --recursive
cd ./deps
################################ fltk
sudo apt install libfltk1.3-dev -y
apt-cache madison libfltk1.3-dev
################################ json
cd ./json
git switch -c v3.11.2
cd ../
################################ ggml
cd ./ggml
cd ../
################################ faiss
sudo apt install libfaiss-dev -y
apt-cache madison libfaiss-dev
################################ spdlog
# sudo apt install libspdlog-dev -y
# apt-cache madison libspdlog-dev
git clone https://github.com/fmtlib/fmt.git
cd fmt
git switch -c 10.2.0
mkdir build ; cd $_
cmake .. -DFMT_TEST=OFF
make -j 8
sudo make install
cd ../../
git clone https://github.com/gabime/spdlog.git
cd spdlog
git switch -c v1.12.0
mkdir build ; cd $_
cmake .. -DSPDLOG_BUILD_EXAMPLE=OFF
make -j 8
sudo make install
cd ../../
################################ opencv
sudo apt install libopencv-dev -y
apt-cache madison libopencv-dev
################################ yaml-cpp
sudo apt install libyaml-cpp-dev -y
apt-cache madison libyaml-cpp-dev
################################ cpp-httplib
# sudo apt install libcpp-httplib-dev -y
# apt-cache madison libcpp-httplib-dev
git clone https://github.com/yhirose/cpp-httplib.git
cd cpp-httplib
git switch -c v0.16.2
mkdir build ; cd $_
cmake ..
make -j 8
sudo make install
cd ../../
################################ stable-diffusion.cpp
# cd ./stable-diffusion.cpp
# cd ../
################################ Chinese-Word-Vectors
# cd ./Chinese-Word-Vectors
# cd ../
- name: Deploy lifuren
run: |
pwd
gcc -v
g++ -v
cmake -version
mkdir build ; cd $_
cmake ..
make -j
ls -lh Debug/bin
ls -lh Debug/lib
sudo make install
make clean