The tokenizer moves out of Kryon so any Ziran program can use it without a UI dependency. It reports token kinds and byte ranges and colors them into caller-owned SyntaxColorSpan values, which have the same fields as Kryon's TextAreaColorSpan.
28 lines
537 B
YAML
28 lines
537 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
path: syntax
|
|
|
|
- name: Build the ziran launcher
|
|
run: |
|
|
git clone --depth 1 https://github.com/ziranlang/ziran.git ziran
|
|
make -C ziran
|
|
echo "$PWD/ziran/build/bin" >> "$GITHUB_PATH"
|
|
|
|
- name: Test
|
|
working-directory: syntax
|
|
run: |
|
|
ziran fetch --locked
|
|
make check
|