Skip to content

Commit 427740c

Browse files
committed
fix: update GitHub Actions workflow to fix submodule issue
1 parent 87bd585 commit 427740c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/cmake.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,17 @@ jobs:
2323
cpp_version: [11, 14, 17, 20]
2424
build_type: [Release, Debug]
2525

26-
2726
steps:
28-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2928
with:
30-
submodules: recursive
29+
submodules: true
30+
fetch-depth: 0
31+
32+
- name: Update submodules
33+
run: |
34+
git submodule update --init --recursive --remote
35+
cd submodules/cppjieba
36+
git checkout master
3137
3238
- name: Configure CMake
3339
run: cmake -B ${{github.workspace}}/build -DBUILD_TESTING=ON -DCMAKE_CXX_STANDARD=${{matrix.cpp_version}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}}

0 commit comments

Comments
 (0)