diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c106381a..2eccb3089 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: - name: Dependencies run: | sudo apt-get update - sudo apt-get install build-essential + sudo apt-get install build-essential cmake - name: Build run: | diff --git a/build.sh b/build.sh index 0e61ba28d..500366d7a 100755 --- a/build.sh +++ b/build.sh @@ -13,7 +13,8 @@ if [ ! -f libsentencepiece.a ] then tar xzvf v0.1.97.tar.gz 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) cd ../.. cp sentencepiece-0.1.97/build/src/libsentencepiece.a ./