Skip to content

Commit

Permalink
dict-to-mozc update
Browse files Browse the repository at this point in the history
  • Loading branch information
phoepsilonix committed Oct 8, 2024
1 parent 7f83cfd commit 500f8c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ jobs:
run: |
git clone --filter=tree:0 --single-branch https://github.com/phoepsilonix/mozcdict-ext.git
cd mozcdict-ext/sudachi
_mozcdict_ext_commit=6c4fe9dc68ad0bf0b8df73fa9114acbd99f78c4c
git checkout $_mozcdict_ext_commit
. "$HOME/.cargo/env"
_sudachidict_date=$(curl -s 'http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict-raw/' | grep -o '<td>[0-9]*</td>' | grep -o '[0-9]*' | sort -n | tail -n 1)
curl -LO "http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict-raw/${_sudachidict_date}/small_lex.zip"
Expand All @@ -274,7 +276,7 @@ jobs:
cat small_lex.csv core_lex.csv notcore_lex.csv > sudachi.csv
rm *lex.csv
rustup update stable
rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n) | grep musl && TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep musl|head -n1) || TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep -v musl|head -n1)
rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n) | grep -v musl && TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep -v musl|head -n1) || TARGET=$(rustup target list --installed | grep $(rustc -vV | sed -e 's|host: ||' -e 's|-gnu||p' -n)|grep musl|head -n1)
cargo build --release --target $TARGET
./target/$TARGET/release/dict-to-mozc -s -i ../../source/src/data/dictionary_oss/id.def -f sudachi.csv > ./all-dict.txt
awk -f dup.awk all-dict.txt > finish-dict.txt
Expand Down

0 comments on commit 500f8c9

Please sign in to comment.