feat(trie): TrieCharLegacy, expanded dict-op benchmarks, and real-text e2e benchmarks #94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test nlpo3-cli | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'nlpo3-cli/words_th.txt' | |
| - 'nlpo3-cli/src/**' | |
| - 'nlpo3-cli/Cargo.toml' | |
| - '.github/workflows/test-nlpo3-cli.yml' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - 'nlpo3-cli/words_th.txt' | |
| - 'nlpo3-cli/src/**' | |
| - 'nlpo3-cli/Cargo.toml' | |
| - '.github/workflows/test-nlpo3-cli.yml' | |
| defaults: | |
| run: | |
| working-directory: nlpo3-cli | |
| jobs: | |
| test-cli: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| bitness: [64] # 32, 64 | |
| include: | |
| - os: windows-latest | |
| bitness: 32 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v6 | |
| - name: Setup Rust toolchain - non-win32 | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| if: "!startsWith(matrix.os, 'windows') || matrix.bitness != '32'" | |
| - name: Setup Rust toolchain - win32 | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| target: i686-pc-windows-msvc | |
| if: startsWith(matrix.os, 'windows') && matrix.bitness == '32' | |
| - name: Test - non-win32 | |
| run: cargo test | |
| if: "!startsWith(matrix.os, 'windows') || matrix.bitness != '32'" | |
| - name: Test - win32 | |
| run: cargo test --target i686-pc-windows-msvc | |
| if: startsWith(matrix.os, 'windows') && matrix.bitness == '32' |