ensure cmake is proper version

This commit is contained in:
beiller 2023-03-08 16:44:50 -05:00
parent 3e2327c96a
commit 07771aab81
No known key found for this signature in database
GPG key ID: 5AC5D1B01D0E5D75
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,7 @@ jobs:
- name: Dependencies - name: Dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install build-essential sudo apt-get install build-essential cmake
- name: Build - name: Build
run: | run: |

View file

@ -13,7 +13,8 @@ if [ ! -f libsentencepiece.a ]
then then
tar xzvf v0.1.97.tar.gz tar xzvf v0.1.97.tar.gz
cd sentencepiece-0.1.97/ && rm -rf build && mkdir build && cd build cd sentencepiece-0.1.97/ && rm -rf build && mkdir build && cd build
cmake -E env CXXFLAGS="-std=c++17" cmake .. cmake --version
cmake ..
make sentencepiece-static -j $(nproc) make sentencepiece-static -j $(nproc)
cd ../.. cd ../..
cp sentencepiece-0.1.97/build/src/libsentencepiece.a ./ cp sentencepiece-0.1.97/build/src/libsentencepiece.a ./