Skip to content

Commit e7dc90e

Browse files
committed
Fix: fixing CI bug
1 parent e41e28e commit e7dc90e

5 files changed

Lines changed: 19 additions & 28 deletions

File tree

.github/workflows/test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ name: Test
1818
on:
1919
push:
2020
branches:
21-
- main
21+
- "**"
22+
- "!dependabot/**"
23+
tags:
24+
- "**"
2225
pull_request:
2326
concurrency:
2427
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ if(DEFINED MECAB_KO_PRIVATE_PREFIX)
7575
INSTALL_COMMAND make install
7676
COMMAND ldconfig ${MECAB_KO_PRIVATE_PREFIX}/lib || true
7777
BUILD_IN_SOURCE FALSE
78+
BUILD_BYPRODUCTS ${MECAB_KO_LIBRARY}
7879
)
7980

8081
ExternalProject_Add(

test/suite/one_token.expected

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,22 @@ tokenize TokenMeCabKo '안녕하세요'
99
],
1010
[
1111
{
12-
"value": "안녕하세요",
12+
"value": "안녕",
1313
"position": 0,
1414
"force_prefix": false,
1515
"force_prefix_search": false
16+
},
17+
{
18+
"value": "하",
19+
"position": 1,
20+
"force_prefix": false,
21+
"force_prefix_search": false
22+
},
23+
{
24+
"value": "세요",
25+
"position": 2,
26+
"force_prefix": false,
27+
"force_prefix_search": false
1628
}
1729
]
1830
]

test/suite/one_token.reject

Lines changed: 0 additions & 26 deletions
This file was deleted.

tokenizers/mecab_ko.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ mecab_ko_model_create(grn_ctx *ctx, grn_mecab_ko_tokenizer_options *options)
498498
argv[argc++] = "-E\n";
499499
}
500500

501+
mecab_model = mecab_model_new(argc, (char **)argv);
501502
if (!mecab_model) {
502503
if (need_default_output) {
503504
GRN_PLUGIN_ERROR(ctx,

0 commit comments

Comments
 (0)