Skip to content

feat(trie): TrieCharLegacy, expanded dict-op benchmarks, and real-text e2e benchmarks #94

feat(trie): TrieCharLegacy, expanded dict-op benchmarks, and real-text e2e benchmarks

feat(trie): TrieCharLegacy, expanded dict-op benchmarks, and real-text e2e benchmarks #94

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'