From 07771aab813a065e5a0bced194588bc3e0593c3d Mon Sep 17 00:00:00 2001 From: beiller Date: Wed, 8 Mar 2023 16:44:50 -0500 Subject: [PATCH] ensure cmake is proper version --- .github/workflows/build.yml | 2 +- build.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c10638..2eccb30 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 0e61ba2..500366d 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 ./