diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 5a0d5ee..da79afe 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -26,17 +26,11 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: true + submodules: recursive fetch-depth: 0 - - name: Update submodules - run: | - git submodule update --init --recursive --remote - cd submodules/cppjieba - git checkout master - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DBUILD_TESTING=ON -DCMAKE_CXX_STANDARD=${{matrix.cpp_version}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} + run: cmake -B ${{github.workspace}}/build -Dsimhash_BUILD_TESTS=ON -DCMAKE_CXX_STANDARD=${{matrix.cpp_version}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} - name: Build run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} @@ -44,4 +38,3 @@ jobs: - name: Test working-directory: ${{github.workspace}}/build run: ctest -C ${{matrix.build_type}} --output-on-failure --verbose -