fix(tools): formatter bracket rules, LSP compiler diagnostics, vocabulary sync
- ludic-fmt: `rows[i]`, `new []int`, `s[a..b]`, `emit(`, `~x`, list-literal
and query-tag braces stay tight; member calls hug their paren
(`Date.new(`, `Prefab.spawn(`); `<< >> & | ^ ~` are operators and
`&& ||` are not — mirrored in ludic_syntax.h, LudicLexer.kt and the
TextMate grammar. 149 of 274 tracked sources failed --check before.
- ludic-lsp: `initializationOptions.compilerDiagnostics` / `compilerPath`
are honoured — on save the document's compilation unit is compiled and
`file:line: error: msg` is published as a "ludicc" diagnostic (the
option had been documented but never implemented); the workspace scan
file is per process; bracket codes spelled as char literals
- Overlay added to LUDIC_PHASES, LudicTokens.kt, ludic-mode.el and the
grammar (the game uses it; check-vocabulary flagged the drift)
- editors: VS Code snippets/package.json/extension.js (`${workspaceFolder}`
and `~` expansion, PATH lookup, Apache-2.0, real repo URL), Neovim root
markers, Helix/Zed/Sublime bin/ paths, Emacs vocabulary, JetBrains
comments; tools/editors/README.md no longer describes C tooling
- .forgejo workflows clone `${{ github.server_url }}/${{ github.repository }}`
so a fork or mirror tests itself; the docs publish pushes the same way
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
8fed9add66
commit
e3e1bc7784
26 changed files with 746 additions and 586 deletions
|
|
@ -25,10 +25,13 @@ jobs:
|
|||
clang-16 --version | head -1
|
||||
|
||||
- name: Check out the triggering commit
|
||||
env:
|
||||
# the repository that triggered the run, so a fork or a mirror tests itself
|
||||
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
|
||||
run: |
|
||||
set -eu
|
||||
git config --global --add safe.directory '*'
|
||||
git clone https://git.workshopsoft.io/workshopsoft/ludic.git .
|
||||
git clone "$REPO_URL" .
|
||||
git checkout "${GITHUB_SHA}" 2>/dev/null || git checkout "${GITHUB_REF_NAME:-main}"
|
||||
git log --oneline -1
|
||||
# See ci.yml for why the Linux build injects the stdio shim via LUDIC_CC.
|
||||
|
|
|
|||
|
|
@ -33,10 +33,13 @@ jobs:
|
|||
clang-16 --version | head -1
|
||||
|
||||
- name: Check out the triggering commit
|
||||
env:
|
||||
# the repository that triggered the run, so a fork or a mirror tests itself
|
||||
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
|
||||
run: |
|
||||
set -eu
|
||||
git config --global --add safe.directory '*'
|
||||
git clone https://git.workshopsoft.io/workshopsoft/ludic.git .
|
||||
git clone "$REPO_URL" .
|
||||
git checkout "${GITHUB_SHA}" 2>/dev/null || git checkout "${GITHUB_REF_NAME:-main}"
|
||||
git log --oneline -1
|
||||
# The toolchain is macOS-first; on this Linux runner it links against a
|
||||
|
|
|
|||
|
|
@ -17,13 +17,12 @@ jobs:
|
|||
steps:
|
||||
- name: Check out with history
|
||||
env:
|
||||
BEFORE: ${{ github.event.before }}
|
||||
BASE: ${{ github.base_ref }}
|
||||
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
|
||||
run: |
|
||||
set -eu
|
||||
git config --global --add safe.directory '*'
|
||||
# Full clone so both endpoints of the range are present.
|
||||
git clone https://git.workshopsoft.io/workshopsoft/ludic.git .
|
||||
git clone "$REPO_URL" .
|
||||
git checkout "${GITHUB_SHA}" 2>/dev/null || git checkout "${GITHUB_REF_NAME:-main}"
|
||||
|
||||
- name: Lint the new commits
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ jobs:
|
|||
- name: Generate the documentation site
|
||||
env:
|
||||
SOURCE_REF: ${{ github.ref_name }}
|
||||
REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git
|
||||
run: |
|
||||
set -eu
|
||||
git config --global --add safe.directory '*'
|
||||
git clone --depth 1 --branch "${SOURCE_REF:-main}" \
|
||||
https://git.workshopsoft.io/workshopsoft/ludic.git src
|
||||
git clone --depth 1 --branch "${SOURCE_REF:-main}" "$REPO_URL" src
|
||||
cd src
|
||||
# The toolchain is macOS-first; on this Linux runner it links against a
|
||||
# tiny C-free IR shim supplying the Darwin stdout/stderr globals over
|
||||
|
|
@ -67,6 +67,8 @@ jobs:
|
|||
PAGES_TOKEN: ${{ secrets.PAGES_TOKEN }}
|
||||
AUTO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SOURCE_SHA: ${{ github.sha }}
|
||||
SERVER_URL: ${{ github.server_url }}
|
||||
REPO: ${{ github.repository }}
|
||||
run: |
|
||||
set -eu
|
||||
TOKEN="${PAGES_TOKEN:-${AUTO_TOKEN:-}}"
|
||||
|
|
@ -80,5 +82,6 @@ jobs:
|
|||
git config user.email "docs@workshopsoft.io"
|
||||
git add -A
|
||||
git commit -q -m "docs: regenerate site from ${SOURCE_SHA}"
|
||||
git push -f "https://ludic-docs-bot:${TOKEN}@git.workshopsoft.io/workshopsoft/ludic.git" pages
|
||||
# the same server and repository the run came from, with the token spliced in
|
||||
git push -f "${SERVER_URL%%://*}://ludic-docs-bot:${TOKEN}@${SERVER_URL#*://}/${REPO}.git" pages
|
||||
echo "published $(git rev-parse --short HEAD) to pages"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue