Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新作業の省エネ化 #58

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0c8ab3d
json2txt 実装してみた
tamo Aug 14, 2024
19af7b9
fullname は EUC-JP では扱いきれないので UTF-8 に
tamo Aug 14, 2024
134f388
「なかむらかつお」さんの「つ」修正
tamo Aug 14, 2024
78ecac3
実際に 0.1.0 で txt2json した成果
tamo Aug 14, 2024
d0bb75f
zipcode の元データが utf-8 になっていたので対応
tamo Aug 14, 2024
95d0309
skkdic-split-geo.rb を復元
tamo Aug 15, 2024
4c59145
skkdic-split-geo.rb を utf-8 に
tamo Aug 15, 2024
fbc3c36
L.unannotated を読むために euc-jp 指定
tamo Aug 15, 2024
f95a47b
edict2u を取得できるように
tamo Aug 15, 2024
7607b2e
make json できるよう訂正
tamo Aug 15, 2024
2f22066
復元率を高めるよう json2txt.ts を修正
tamo Aug 15, 2024
0e2a735
復元率を高めるため meta/yaml を調整
tamo Aug 15, 2024
ceec4a0
schema を 0.0.0 に似せた
tamo Aug 16, 2024
6fc84f9
fullname 辞書が UTF-8 になった関係の Makefile 調整
tamo Aug 16, 2024
a3cfa9e
Makefile: emoji.kana に unannotated が必要
tamo Aug 16, 2024
0a72abb
meta と json の更新
tamo Aug 16, 2024
8cea685
更新方法を committers.md に追加
tamo Aug 17, 2024
e8a8969
ChangeLog を書くときの真鵺道スクリプトを追加
tamo Aug 18, 2024
0542b5a
各辞書やJSONをmakeできるようにMakefile調整
tamo Aug 18, 2024
faf2166
ChangeLog を UTF-8 にしてこれまでの変更を記載
tamo Aug 18, 2024
d878610
地名を正規表現で区切ってみた
tamo Aug 20, 2024
14baaf4
mkdicProcessKyoto の修正
tamo Aug 20, 2024
1d4a19c
zipcode 更新: emacs 不要にした
tamo Aug 22, 2024
a652b87
make geo で geo に追加できそうなエントリを出力
tamo Aug 22, 2024
70a0b1a
「じょう」で区切るには、その前に数字が必要
tamo Aug 22, 2024
75a12b4
README.md を更新
tamo Aug 22, 2024
376dc73
生成物の更新
tamo Aug 22, 2024
7be47b1
Merge branch 'zipcode-utf' into simplify
tamo Aug 22, 2024
66b788f
zipcode-utf8 マージを反映
tamo Aug 22, 2024
b7dcf0b
.gitignore に zipcode/test/zipcode-test.sh を追加
tamo Aug 22, 2024
7c7dfe7
script/manued.sh 修正
tamo Aug 23, 2024
8e2b722
GitHub Actions で make してみるテスト
tamo Aug 23, 2024
e1e1ae4
make 結果 (edict2 が最新になってしまった)
tamo Aug 23, 2024
1e3145f
Makefile: EUC_JSON と UTF_JSON バグってたのを修正
tamo Aug 23, 2024
437be34
txt2json.ts 終了コードを出すように
tamo Aug 23, 2024
96df71f
emoji.el で「/」や「;」になるエントリに対応
tamo Aug 23, 2024
7ee4e27
emoji 更新
tamo Aug 23, 2024
a5781ac
ivd 更新
tamo Aug 23, 2024
90e1952
emoji を更新 (emoji.ts と predef ファイルで)
tamo Aug 27, 2024
286c1a0
GPL2 ファイルを追加
tamo Aug 27, 2024
c7c2648
自動 make と 自動 ChangeLog のテスト
tamo Aug 27, 2024
4cbeb54
edict2 生成を修正するため edict2.ts 追加
tamo Aug 27, 2024
ba91b6f
configure --enable-maintainer-mode にしてみる
tamo Aug 27, 2024
eb9f9ce
continue-on-error: true
tamo Aug 28, 2024
90d0856
ChangeLog を更新
tamo Aug 28, 2024
70f032f
manued.sh 訂正
tamo Sep 3, 2024
48984d4
manued.sh にヘルパーを追加
tamo Sep 3, 2024
2367291
manued 微調整
tamo Sep 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions .github/workflows/make-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
name: Make on push

on:
push:
paths:
- csv/*
- meta/*
- json/*
- SKK-JISYO.*
- zipcode/SKK-JISYO.*

permissions:
contents: write

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: install packages
run: |
sudo apt update
sudo apt -y install autoconf docdiff emacs nkf libdb-dev

- name: clone skktools
uses: actions/checkout@v4
with:
repository: skk-dev/skktools
path: tools
- name: make skktools
run: |
cd tools
./configure --enable-maintainer-mode
make
pwd >> $GITHUB_PATH

- name: install deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- uses: actions/checkout@v4
with:
fetch-depth: 2
path: dict

- name: make -C zipcode
run: |
cd dict
cd zipcode
autoconf -f
./configure
make batch test

- name: make
run: |
cd dict
make MD5=md5sum gzip

- name: prepare git user
run: |
cd dict
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

- name: push ChangeLog for the previous commit
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd dict
git log HEAD^..HEAD --name-only --oneline \
| grep ^ChangeLog || \
git log HEAD^..HEAD --name-only --oneline \
| grep SKK-JISYO | grep -v json | grep -v edict2 && \
env COMPARED='HEAD^..HEAD' \
USERNAME='${{ github.event.head_commit.author.name }}' \
USEREMAIL='${{ github.event.head_commit.author.email }}' \
sh script/manued.sh \
| tee headlog.txt && \
(cat headlog.txt ChangeLog > ChangeLog.tmp && mv ChangeLog{.tmp,}) && \
git add ChangeLog && \
printf "auto-push ChangeLog\n\n" \
| cat - headlog.txt \
| git commit -F - && \
git push

- name: auto-push after make
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd dict
git diff --no-prefix -I '^;' | sed -n 's/^--- //p' \
| grep SKK-JISYO \
| grep -v json | grep -v edict2 | grep -v ivd && \
env COMPARED='HEAD' \
USERNAME='${{ github.event.head_commit.author.name }}' \
USEREMAIL='${{ github.event.head_commit.author.email }}' \
sh script/manued.sh \
| tee headlog.txt && \
[ `wc -l < headlog.txt` = 2 ] || \
(cat headlog.txt ChangeLog > ChangeLog.tmp && mv ChangeLog{.tmp,}) && \
git add `git diff --no-prefix -I '^;' | sed -n 's/^--- //p' | grep SKK-JISYO` ChangeLog && \
printf "auto-push after auto-make\n\n" \
| cat - headlog.txt \
| git commit -F - && \
git push

- name: upload dicts artifact
uses: actions/upload-artifact@v4
with:
name: dicts
path: |
dict/*.gz
dict/*.md5

- name: upload source artifact
uses: actions/upload-artifact@v4
with:
name: source
path: dict

- name: make wrong_check
run: |
cd dict
make wrong_check
(for i in *.w; do echo $i; cat $i; echo; done) | nkf -w
Loading