[*] #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
lifuren: | |
name: Build lifuren | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Checkout deps | |
run: | | |
git submodule update --init --recursive | |
cd ./deps | |
################################ | |
# json | |
################################ | |
cd ./json | |
git checkout v3.11.2 | |
cd .. | |
################################ | |
# fltk | |
################################ | |
sudo apt install libfltk1.3-dev | |
################################ | |
# opencv | |
################################ | |
sudo apt install libopencv-dev | |
################################ | |
# spdlog | |
################################ | |
sudo apt install libspdlog-dev | |
################################ | |
# yaml-cpp | |
################################ | |
sudo apt install libyaml-cpp-dev | |
################################ | |
# cpp-httplib | |
################################ | |
sudo apt install libcpp-httplib-dev | |
################################ | |
# libtorch | |
################################ | |
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.2.1%2Bcpu.zip | |
unzip libtorch-cxx11-abi-shared-with-deps-2.2.1+cpu.zip > /dev/null 2>&1 | |
################################ | |
# 输出目录 | |
################################ | |
ls -lh | |
- name: Deploy lifuren | |
run: | | |
# 输出目录 | |
pwd | |
# 输出版本 | |
gcc -v | |
g++ -v | |
cmake -version | |
# 开始编译 | |
mkdir build | |
cd build | |
cmake .. | |
make -j 8 | |
sudo make install | |
make clean |