From c3dc675e0e0a2fea007b42c27fbcff350e0c0480 Mon Sep 17 00:00:00 2001 From: Minoru Osuka Date: Sun, 17 Nov 2024 21:23:05 +0900 Subject: [PATCH] Fix workflows --- .github/workflows/periodic.yml | 4 ++-- .github/workflows/regression.yml | 4 ++-- .github/workflows/release.yml | 2 +- Cargo.toml | 4 ++-- benches/{tokenizer.rs => bench.rs} | 0 5 files changed, 7 insertions(+), 7 deletions(-) rename benches/{tokenizer.rs => bench.rs} (100%) diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 37438e5..bc91ca4 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -19,7 +19,7 @@ jobs: - runner: windows-latest target: x86_64-pc-windows-msvc toolchain: [stable, beta, nightly] - features: ["ipadic,ko-dic,cc-cedict"] + features: ["cjk"] runs-on: ${{ matrix.platform.runner }} env: LINDERA_CONFIG_PATH: "./resources/lindera.yml" @@ -35,4 +35,4 @@ jobs: components: rustfmt, clippy - name: Run test - run: cargo test --target "${{ matrix.platform.target }}" --features "${{ matrix.features }}" + run: cargo test --target "${{ matrix.platform.target }}" --features "${{ matrix.features }},extension" diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 2a3f970..01d5dab 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -40,7 +40,7 @@ jobs: - runner: ubuntu-latest target: x86_64 toolchain: [stable] - features: ["ipadic", "ko-dic", "cc-cedict"] + features: ["cjk"] runs-on: ${{ matrix.platform.runner }} steps: - name: Run checkout @@ -53,7 +53,7 @@ jobs: components: rustfmt, clippy - name: Run check - run: cargo check --features "${{ matrix.features }}" + run: cargo check --features "${{ matrix.features }},extension" test: strategy: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3d7a21..865f0ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: archive: .zip extension: ".dll" toolchain: [stable] - features: ["ipadic", "ko-dic", "cc-cedict"] + features: ["cjk"] runs-on: ${{ matrix.platform.runner }} env: LINDERA_CONFIG_PATH: "./resources/lindera.json" diff --git a/Cargo.toml b/Cargo.toml index 59fa71f..da88a42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,9 +20,9 @@ ko-dic = ["lindera/ko-dic"] # Include ko-dic dictionary (Korean) cc-cedict = ["lindera/cc-cedict"] # Include CC-CEDICT dictionary (Chinese) compress = ["lindera/compress"] # Compress dictionaries extension = [] +cjk = ["cc-cedict", "ipadic", "ko-dic", "compress", "extension"] # Include CJK dictionary (Chinese, Japanese, Korean) [lib] -# crate-type = ["rlib", "staticlib"] crate-type = ["cdylib"] [profile.release] @@ -41,5 +41,5 @@ lindera = "0.38.0" criterion = "0.5" [[bench]] -name = "tokenizer" +name = "bench" harness = false diff --git a/benches/tokenizer.rs b/benches/bench.rs similarity index 100% rename from benches/tokenizer.rs rename to benches/bench.rs