mirror: 初始快照

This commit is contained in:
Li_Feiyu committed 2026-10-02 22:54:53 +08:00
commit fae8c948cd
319 files changed
+5217599

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
sample:
python ./bin/convert_all.py --input_folder=dict --output_folder=output --extension=tab --filter=Hero
all:
cp dict/*.* ext-dict/
python ./bin/convert_all.py --input_folder=ext-dict --output_folder=ext-output --extension=tab --filter=Hero
@@ -0,0 +1,56 @@
name: Create inflections for all dictionaries
on:
workflow_dispatch:
push:
paths-ignore:
- .gitignore
- '*.md'
- LICENSE
jobs:
build:
# Only builds if commit message contains keyword
if: "contains(github.event.head_commit.message, 'INFLECTION')"
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Fetch full Git history (not shallow)
run: |
git fetch --unshallow
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup Python packages
run: |
pip install -r ./bin/requirements-inflections.txt
- name: Create all inflections
run: |
python ./bin/create_inflections.py
- name: Upload files to repos
run: |
if [[ -z $(git status -s) ]]
then
echo "Nothing to commit."
else
echo "---------------------------------"
ls
echo "---------------------------------"
git config user.name "catus felis"
git config user.email catusf@users.noreply.github.com
git branch --show-current
git add .
git status
git commit -m "[AUTO] Create inflections"
git fetch
git push origin --force
fi
@@ -0,0 +1,22 @@
name: Sync with Gitlab
on:
- push
- delete
jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wangchucheng/git-repo-sync@v0.1.0
with:
# Such as https://github.com/wangchucheng/git-repo-sync.git
target-url: ${{ secrets.TARGET_URL }}
# Such as wangchucheng
target-username: ${{ secrets.TARGET_USERNAME }}
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }}
target-token: ${{ secrets.TARGET_TOKEN }}
+81
View File
@@ -0,0 +1,81 @@
name: Release all INTERNAL & EXTERNAL dictionaries
on:
workflow_dispatch:
push:
paths-ignore:
- .gitignore
- '*.md'
- LICENSE
- bin/create_inflections.py
- .github/workflows/release_all.yml
env:
INPUT_DIR: dict
OUTPUT_DIR: output
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: 'recursive'
- name: Setup Ubuntu packages
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_linux_packages.sh
- name: Setup Wine32
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_wine32.sh
- name: Setup Utilities
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_utilities.sh
- name: Build makedict
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_makedict.sh
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Setup Python packages
run: |
pip install uv &&
uv sync
- name: Build all dictionaries
run: |
make all
- name: Get Current Timestamp
id: timestamp
run: |
echo "TIMESTAMP=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Create a new release draft
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ env.OUTPUT_DIR }}/*.*,${{ env.INPUT_DIR }}/dict_summary.json,${{ env.INPUT_DIR }}/dict_summary.md"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
draft: true
name: "Release ALL dictionaries at ${{ github.ref }} - ${{ env.TIMESTAMP }}"
bodyFile: ${{ env.INPUT_DIR }}/dict_summary.md
+83
View File
@@ -0,0 +1,83 @@
name: Release sample dictionaries
on:
workflow_dispatch:
push:
paths-ignore:
- .gitignore
- '*.md'
- LICENSE
- bin/create_inflections.py
env:
INPUT_DIR: dict
OUTPUT_DIR: output
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: 'recursive'
- name: Setup Ubuntu packages
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_linux_packages.sh
- name: Setup Wine32
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_wine32.sh
- name: Setup Utilities
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_utilities.sh
- name: Build makedict
run: |
# Call a script so that it can be used in a shell/container as well
./bin/install_makedict.sh
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Setup Python packages
run: |
pip install uv &&
uv sync
- name: Build all dictionaries
run: |
make sample
- name: Get Current Timestamp
id: timestamp
run: |
echo "TIMESTAMP=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Create a new release draft
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ env.OUTPUT_DIR }}/*.*,${{ env.INPUT_DIR }}/dict_summary.json,${{ env.INPUT_DIR }}/dict_summary.md"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
draft: true
name: "Release samples at ${{ github.ref }} - ${{ env.TIMESTAMP }}"
bodyFile: ${{ env.INPUT_DIR }}/dict_summary.md