[*] file #62
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 .. | |
################################ | |
# spdlog | |
################################ | |
cd ./spdlog | |
git checkout v1.12.0 | |
cd .. | |
################################ | |
# fltk | |
################################ | |
sudo apt install libfltk1.3-dev | |
################################ | |
# opencv | |
################################ | |
sudo apt install libopencv-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 | |
- name: Deploy lifuren | |
run: | | |
# 输出版本 | |
gcc -v | |
g++ -v | |
cmake -version | |
# 开始编译 | |
mkdir build | |
cd build | |
cmake .. | |
make -j 8 | |
make clean |