Files
scrabble-dictionary/.gitea/workflows/build.yaml
T
Ilia Denisov 1d34753611
build / dawg (pull_request) Successful in 1m11s
CI: build-only validation (no make/python/contexts); commit folded erudit.txt
- build.yaml dropped the release step whose ${{ github.* }} contexts failed the Gitea
  workflow compile (the run produced 0 jobs); it now inlines go run (no make dependency)
  and reads the committed dictprep/russian/erudit.txt (no python dependency).
- erudit.txt is scrabble.txt with Ё→Е folded (dictprep/fold_yo.py); it reproduces the
  canonical ru_erudit.dawg byte-for-byte. Release artifacts are published manually for now
  (see README).
2026-06-04 19:43:44 +02:00

44 lines
1.5 KiB
YAML

name: build
# Validation gate: rebuilds the three dictionary DAWGs on every push/PR and checks they are
# non-empty. The build pins the published scrabble-solver builders (GOPRIVATE -> direct VCS
# fetch from this Gitea), so the on-disk format and letter indexing match the running backend
# exactly. Release artifacts (scrabble-dawg-<tag>.tar.gz attached to the Gitea release) are
# published from this output; see README.md. Inlined go run (no make/python dependency on the
# runner).
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
dawg:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
GOPRIVATE: gitea.iliadenisov.ru/*
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Build DAWGs
run: |
mkdir -p dawg
go run ./cmd/builddict -dict dictionaries/english/sowpods.txt -alphabet latin -name en_sowpods -out dawg
go run ./cmd/builddict -dict dictprep/russian/scrabble.txt -alphabet russian -name ru_scrabble -out dawg
go run ./cmd/builddict -dict dictprep/russian/erudit.txt -alphabet russian -name ru_erudit -out dawg
ls -la dawg/
for f in en_sowpods ru_scrabble ru_erudit; do
test -s "dawg/$f.dawg" || { echo "missing dawg/$f.dawg"; exit 1; }
done