Skip to content

Unishox3 Alpha golang binding progress #128

Unishox3 Alpha golang binding progress

Unishox3 Alpha golang binding progress #128

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: make
- name: test
run: ./test_unishox2 -t && ./test_unishox2-w-olen -t
- name: test sample_texts/chinese.txt
run: ./test_unishox2 -c sample_texts/chinese.txt sample_texts/chinese.usx && ./test_unishox2 -d sample_texts/chinese.usx sample_texts/chinese.dsx && cmp sample_texts/chinese.txt sample_texts/chinese.dsx
- name: test sample_texts/emoji.txt
run: ./test_unishox2 -c sample_texts/emoji.txt sample_texts/emoji.usx && ./test_unishox2 -d sample_texts/emoji.usx sample_texts/emoji.dsx && cmp sample_texts/emoji.txt sample_texts/emoji.dsx
- name: test sample_texts/french.txt
run: ./test_unishox2 -c sample_texts/french.txt sample_texts/french.usx && ./test_unishox2 -d sample_texts/french.usx sample_texts/french.dsx && cmp sample_texts/french.txt sample_texts/french.dsx
- name: test sample_texts/hindi.txt
run: ./test_unishox2 -c sample_texts/hindi.txt sample_texts/hindi.usx && ./test_unishox2 -d sample_texts/hindi.usx sample_texts/hindi.dsx && cmp sample_texts/hindi.txt sample_texts/hindi.dsx
- name: test sample_texts/japanese.txt
run: ./test_unishox2 -c sample_texts/japanese.txt sample_texts/japanese.usx && ./test_unishox2 -d sample_texts/japanese.usx sample_texts/japanese.dsx && cmp sample_texts/japanese.txt sample_texts/japanese.dsx
- name: test sample_texts/json1.txt
run: ./test_unishox2 -c sample_texts/json1.txt sample_texts/json1.usx && ./test_unishox2 -d sample_texts/json1.usx sample_texts/json1.dsx && cmp sample_texts/json1.txt sample_texts/json1.dsx
- name: test sample_texts/json2.txt
run: ./test_unishox2 -c sample_texts/json2.txt sample_texts/json2.usx && ./test_unishox2 -d sample_texts/json2.usx sample_texts/json2.dsx && cmp sample_texts/json2.txt sample_texts/json2.dsx
- name: test sample_texts/json3.txt
run: ./test_unishox2 -c sample_texts/json3.txt sample_texts/json3.usx && ./test_unishox2 -d sample_texts/json3.usx sample_texts/json3.dsx && cmp sample_texts/json3.txt sample_texts/json3.dsx
- name: test sample_texts/json4.txt
run: ./test_unishox2 -c sample_texts/json4.txt sample_texts/json4.usx && ./test_unishox2 -d sample_texts/json4.usx sample_texts/json4.dsx && cmp sample_texts/json4.txt sample_texts/json4.dsx
- name: test sample_texts/korean.txt
run: ./test_unishox2 -c sample_texts/korean.txt sample_texts/korean.usx && ./test_unishox2 -d sample_texts/korean.usx sample_texts/korean.dsx && cmp sample_texts/korean.txt sample_texts/korean.dsx
- name: test sample_texts/spanish.txt
run: ./test_unishox2 -c sample_texts/spanish.txt sample_texts/spanish.usx && ./test_unishox2 -d sample_texts/spanish.usx sample_texts/spanish.dsx && cmp sample_texts/spanish.txt sample_texts/spanish.dsx
- name: test sample_texts/tamil.txt
run: ./test_unishox2 -c sample_texts/tamil.txt sample_texts/tamil.usx && ./test_unishox2 -d sample_texts/tamil.usx sample_texts/tamil.dsx && cmp sample_texts/tamil.txt sample_texts/tamil.dsx
- name: test sample_texts/xml1.txt
run: ./test_unishox2 -c sample_texts/xml1.txt sample_texts/xml1.usx && ./test_unishox2 -d sample_texts/xml1.usx sample_texts/xml1.dsx && cmp sample_texts/xml1.txt sample_texts/xml1.dsx
- name: test sample_texts/world95.txt
run: ./test_unishox2 -c sample_texts/world95.txt sample_texts/world95.usx && ./test_unishox2 -d sample_texts/world95.usx sample_texts/world95.dsx && cmp sample_texts/world95.txt sample_texts/world95.dsx
- name: test sample_texts/alice_wland_chn.txt
run: ./test_unishox2 -c sample_texts/alice_wland_chn.txt sample_texts/alice_wland_chn.usx && ./test_unishox2 -d sample_texts/alice_wland_chn.usx sample_texts/alice_wland_chn.dsx && cmp sample_texts/alice_wland_chn.txt sample_texts/alice_wland_chn.dsx
- name: test sample_texts/alice_wland.txt
run: ./test_unishox2 -c sample_texts/alice_wland.txt sample_texts/alice_wland.usx && ./test_unishox2 -d sample_texts/alice_wland.usx sample_texts/alice_wland.dsx && cmp sample_texts/alice_wland.txt sample_texts/alice_wland.dsx
- name: test sample_texts/hi.txt
run: ./test_unishox2 -c sample_texts/hi.txt sample_texts/hi.usx && ./test_unishox2 -d sample_texts/hi.usx sample_texts/hi.dsx && cmp sample_texts/hi.txt sample_texts/hi.dsx
- name: test sample_texts/ja.txt
run: ./test_unishox2 -c sample_texts/ja.txt sample_texts/ja.usx && ./test_unishox2 -d sample_texts/ja.usx sample_texts/ja.dsx && cmp sample_texts/ja.txt sample_texts/ja.dsx
- name: test sample_texts/ru.txt
run: ./test_unishox2 -c sample_texts/ru.txt sample_texts/ru.usx && ./test_unishox2 -d sample_texts/ru.usx sample_texts/ru.dsx && cmp sample_texts/ru.txt sample_texts/ru.dsx
- name: test sample_texts/ta.txt
run: ./test_unishox2 -c sample_texts/ta.txt sample_texts/ta.usx && ./test_unishox2 -d sample_texts/ta.usx sample_texts/ta.dsx && cmp sample_texts/ta.txt sample_texts/ta.dsx
- name: test sample_texts/zh.txt
run: ./test_unishox2 -c sample_texts/zh.txt sample_texts/zh.usx && ./test_unishox2 -d sample_texts/zh.usx sample_texts/zh.dsx && cmp sample_texts/zh.txt sample_texts/zh.dsx
- name: install marisa
run: sudo apt install marisa
- name: install marisa-dev
run: sudo apt install libmarisa-dev
- name: make v3
run: cd Unishox3_Alpha && make
- name: test v3
run: ./usx3 -t
- name: test v3 sample_texts/chinese.txt
run: ./usx3 -c sample_texts/chinese.txt sample_texts/chinese.psx && ./usx3 -d sample_texts/chinese.psx sample_texts/chinese.ds3 && cmp sample_texts/chinese.txt sample_texts/chinese.ds3
- name: test v3 sample_texts/emoji.txt
run: ./usx3 -c sample_texts/emoji.txt sample_texts/emoji.psx && ./usx3 -d sample_texts/emoji.psx sample_texts/emoji.ds3 && cmp sample_texts/emoji.txt sample_texts/emoji.ds3
- name: test v3 sample_texts/french.txt
run: ./usx3 -c sample_texts/french.txt sample_texts/french.psx && ./usx3 -d sample_texts/french.psx sample_texts/french.ds3 && cmp sample_texts/french.txt sample_texts/french.ds3
- name: test v3 sample_texts/hindi.txt
run: ./usx3 -c sample_texts/hindi.txt sample_texts/hindi.psx && ./usx3 -d sample_texts/hindi.psx sample_texts/hindi.ds3 && cmp sample_texts/hindi.txt sample_texts/hindi.ds3
- name: test v3 sample_texts/japanese.txt
run: ./usx3 -c sample_texts/japanese.txt sample_texts/japanese.psx && ./usx3 -d sample_texts/japanese.psx sample_texts/japanese.ds3 && cmp sample_texts/japanese.txt sample_texts/japanese.ds3
- name: test v3 sample_texts/json1.txt
run: ./usx3 -c sample_texts/json1.txt sample_texts/json1.psx && ./usx3 -d sample_texts/json1.psx sample_texts/json1.ds3 && cmp sample_texts/json1.txt sample_texts/json1.ds3
- name: test v3 sample_texts/json2.txt
run: ./usx3 -c sample_texts/json2.txt sample_texts/json2.psx && ./usx3 -d sample_texts/json2.psx sample_texts/json2.ds3 && cmp sample_texts/json2.txt sample_texts/json2.ds3
- name: test v3 sample_texts/json3.txt
run: ./usx3 -c sample_texts/json3.txt sample_texts/json3.psx && ./usx3 -d sample_texts/json3.psx sample_texts/json3.ds3 && cmp sample_texts/json3.txt sample_texts/json3.ds3
- name: test v3 sample_texts/json4.txt
run: ./usx3 -c sample_texts/json4.txt sample_texts/json4.psx && ./usx3 -d sample_texts/json4.psx sample_texts/json4.ds3 && cmp sample_texts/json4.txt sample_texts/json4.ds3
- name: test v3 sample_texts/spanish.txt
run: ./usx3 -c sample_texts/spanish.txt sample_texts/spanish.psx && ./usx3 -d sample_texts/spanish.psx sample_texts/spanish.ds3 && cmp sample_texts/spanish.txt sample_texts/spanish.ds3
- name: test v3 sample_texts/tamil.txt
run: ./usx3 -c sample_texts/tamil.txt sample_texts/tamil.psx && ./usx3 -d sample_texts/tamil.psx sample_texts/tamil.ds3 && cmp sample_texts/tamil.txt sample_texts/tamil.ds3
- name: test v3 sample_texts/xml1.txt
run: ./usx3 -c sample_texts/xml1.txt sample_texts/xml1.psx && ./usx3 -d sample_texts/xml1.psx sample_texts/xml1.ds3 && cmp sample_texts/xml1.txt sample_texts/xml1.ds3
- name: test v3 sample_texts/world95.txt
run: ./usx3 -c sample_texts/world95.txt sample_texts/world95.psx && ./usx3 -d sample_texts/world95.psx sample_texts/world95.ds3 && cmp sample_texts/world95.txt sample_texts/world95.ds3
- name: test v3 sample_texts/alice_wland_chn.txt
run: ./usx3 -c sample_texts/alice_wland_chn.txt sample_texts/alice_wland_chn.psx && ./usx3 -d sample_texts/alice_wland_chn.psx sample_texts/alice_wland_chn.ds3 && cmp sample_texts/alice_wland_chn.txt sample_texts/alice_wland_chn.ds3
- name: test v3 sample_texts/alice_wland.txt
run: ./usx3 -c sample_texts/alice_wland.txt sample_texts/alice_wland.psx && ./usx3 -d sample_texts/alice_wland.psx sample_texts/alice_wland.ds3 && cmp sample_texts/alice_wland.txt sample_texts/alice_wland.ds3
- name: test v3 sample_texts/hi.txt
run: ./usx3 -c sample_texts/hi.txt sample_texts/hi.psx && ./usx3 -d sample_texts/hi.psx sample_texts/hi.ds3 && cmp sample_texts/hi.txt sample_texts/hi.ds3
- name: test v3 sample_texts/ja.txt
run: ./usx3 -c sample_texts/ja.txt sample_texts/ja.psx && ./usx3 -d sample_texts/ja.psx sample_texts/ja.ds3 && cmp sample_texts/ja.txt sample_texts/ja.ds3
- name: test v3 sample_texts/ru.txt
run: ./usx3 -c sample_texts/ru.txt sample_texts/ru.psx && ./usx3 -d sample_texts/ru.psx sample_texts/ru.ds3 && cmp sample_texts/ru.txt sample_texts/ru.ds3
- name: test v3 sample_texts/ta.txt
run: ./usx3 -c sample_texts/ta.txt sample_texts/ta.psx && ./usx3 -d sample_texts/ta.psx sample_texts/ta.ds3 && cmp sample_texts/ta.txt sample_texts/ta.ds3
- name: test v3 sample_texts/zh.txt
run: ./usx3 -c sample_texts/zh.txt sample_texts/zh.psx && ./usx3 -d sample_texts/zh.psx sample_texts/zh.ds3 && cmp sample_texts/zh.txt sample_texts/zh.ds3