Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a1bf94ceb | ||
|
|
9ae46c627e | ||
|
|
f5390d85a5 | ||
|
|
a1260b624f | ||
|
|
50f3a8ed6d | ||
|
|
3599bad770 | ||
|
|
328b5aff3f | ||
|
|
46a175fa34 | ||
|
|
550e00de88 | ||
|
|
9dcecd6a50 | ||
|
|
f33b8a191d | ||
|
|
7e7f0329d4 | ||
|
|
f11cbc80fb | ||
|
|
f107b2a0df | ||
|
|
82ac24d32f | ||
|
|
573b632c41 | ||
|
|
6339dab94c | ||
|
|
85cd06159f | ||
|
|
305053dec5 | ||
|
|
ecde810b97 | ||
|
|
45d118b733 | ||
|
|
bbf4f16b02 | ||
|
|
bd2bb39f29 | ||
|
|
5eef3ea535 | ||
|
|
a587b06673 | ||
|
|
85905afe96 | ||
|
|
997a9163f1 | ||
|
|
fb5134114d | ||
|
|
6122de4296 | ||
|
|
ad7095ec7c | ||
|
|
685eb4e143 | ||
|
|
333ba2f875 | ||
|
|
decfee4212 | ||
|
|
2fbebbec05 | ||
|
|
7198ebc587 | ||
|
|
a2fd6b63c8 | ||
|
|
e13d77aaaf | ||
|
|
e228b1acc8 | ||
|
|
6f692b7e32 | ||
|
|
8a528a6e47 | ||
|
|
493ad25947 | ||
|
|
5de8e26024 | ||
|
|
8c2f07ae66 | ||
|
|
fc0729181e | ||
|
|
d0613da5c4 | ||
|
|
ac944513cd | ||
|
|
6cd29b096c | ||
|
|
b19f3c4c4c | ||
|
|
28e90d8747 | ||
|
|
53b70d16d5 | ||
|
|
9a243a8019 | ||
|
|
feab1a9350 | ||
|
|
b193a2e726 | ||
|
|
70bedd0473 | ||
|
|
7bf57c56d5 | ||
|
|
6c47e79b09 | ||
|
|
28759c07e3 | ||
|
|
9ea2e00696 | ||
|
|
910902d5cc | ||
|
|
779413138e | ||
|
|
009263e870 | ||
|
|
28ece54b9f | ||
|
|
a9f3646f8c | ||
|
|
6605d396dd | ||
|
|
90c36f55d5 | ||
|
|
d1a6db792a | ||
|
|
12fb43d300 | ||
|
|
dbe11dffbb | ||
|
|
61d7d0dbb0 | ||
|
|
fe43032ccc | ||
|
|
d3b5cb815b | ||
|
|
e2ff252eec | ||
|
|
ea24cd0e6f | ||
|
|
b83d2a35cd | ||
|
|
e7bf8829ec | ||
|
|
c83b05f1ac | ||
|
|
3077f00966 | ||
|
|
e8dfd3db3d | ||
|
|
1f5a2a6c6d | ||
|
|
4175783d93 | ||
|
|
d527f78a8d | ||
|
|
39a2c2e1b0 | ||
|
|
529e8aac90 | ||
|
|
f17fed4326 | ||
|
|
da62a1a546 | ||
|
|
d6801e3316 | ||
|
|
85813b4c1f | ||
|
|
c0dc855f77 | ||
|
|
871ea723bb | ||
|
|
529512c48d | ||
|
|
cf270ba04b | ||
|
|
e366faee1f | ||
|
|
bab3db1c26 | ||
|
|
11867cf71c | ||
|
|
3ac1f58405 | ||
|
|
8128a83c4c | ||
|
|
4ce7121044 | ||
|
|
842543c6cb | ||
|
|
0a25f04da5 | ||
|
|
f8c4513d2c | ||
|
|
838fbd3ea6 | ||
|
|
2797478457 | ||
|
|
a1ef965a0a | ||
|
|
83733697ab | ||
|
|
2a9cf6dc16 | ||
|
|
17a8c616a8 | ||
|
|
3cba691a49 | ||
|
|
108e4775b6 | ||
|
|
02b90adeb8 | ||
|
|
6c84ebe030 | ||
|
|
c8efea2e2f | ||
|
|
058afcf19b | ||
|
|
72c7ca0286 | ||
|
|
6758780183 | ||
|
|
d7eb388daf | ||
|
|
78bf4f81e0 | ||
|
|
ff68e1b8b3 | ||
|
|
f3e3f55cbe | ||
|
|
f9913eddb7 | ||
|
|
ba07c4d563 | ||
|
|
f99157cc3e | ||
|
|
c88f9eed06 | ||
|
|
fb80f5e0d4 | ||
|
|
b12a05f2f1 | ||
|
|
1cd6a4c1f7 | ||
|
|
5ffd6f861a | ||
|
|
59ee3d24b1 | ||
|
|
e5d94569d0 | ||
|
|
dbf802f809 | ||
|
|
a91426bd90 | ||
|
|
bf2b3ec0e3 | ||
|
|
400a8e516d | ||
|
|
108b3af91c | ||
|
|
e1d856c79a | ||
|
|
b07e8810ea | ||
|
|
4f13f01ccb | ||
|
|
0beb8868d9 | ||
|
|
934366bf76 | ||
|
|
8ea8894f07 | ||
|
|
888c57e216 | ||
|
|
446d7ba73e | ||
|
|
786aa6cca7 | ||
|
|
3dd7f1c67d | ||
|
|
9a73f8287f | ||
|
|
279341cbe5 | ||
|
|
64726e6c83 | ||
|
|
1af803c684 | ||
|
|
fbb84fd8ce | ||
|
|
e9f90216c1 | ||
|
|
e58742909f | ||
|
|
b91804a656 | ||
|
|
666cf6dec4 | ||
|
|
3232483494 | ||
|
|
560bfd14e3 | ||
|
|
8b82d6ccca | ||
|
|
6458781bfb | ||
|
|
3e37e8d9dc | ||
|
|
d7ee514132 | ||
|
|
c8a45734eb | ||
|
|
9fd589f704 | ||
|
|
1c3e45f824 | ||
|
|
366e9e0a3b | ||
|
|
bd42eff987 | ||
|
|
c7446fcdd3 | ||
|
|
f3aba36d00 | ||
|
|
fbbad35a1a | ||
|
|
1d2207b045 | ||
|
|
e5c7d4be1a | ||
|
|
94b3bd5f9d | ||
|
|
900553a78c | ||
|
|
dc67b1bfbe |
No files matched your search
@@ -0,0 +1,42 @@
|
||||
name: Set up Emscripten
|
||||
description: >
|
||||
Install the Emscripten SDK version named in .github/emscripten-version and
|
||||
put it on PATH. The SDK, including the system libraries and ports it builds
|
||||
on first use, is cached per version, so a job only downloads it when the
|
||||
pinned version changes.
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Read the pinned Emscripten version
|
||||
id: version
|
||||
shell: bash
|
||||
run: echo "version=$(tr -d '[:space:]' < .github/emscripten-version)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Restore the Emscripten SDK
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/emsdk
|
||||
key: emsdk-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-${{ hashFiles('scripts/ensure-emscripten-zlib.sh') }}
|
||||
restore-keys: |
|
||||
emsdk-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-
|
||||
|
||||
- name: Install and activate Emscripten
|
||||
shell: bash
|
||||
env:
|
||||
EMSCRIPTEN_VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ ! -x "$HOME/emsdk/emsdk" ]; then
|
||||
rm -rf "$HOME/emsdk"
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
fi
|
||||
if [ ! -x "$HOME/emsdk/upstream/emscripten/emcc" ]; then
|
||||
"$HOME/emsdk/emsdk" install "$EMSCRIPTEN_VERSION"
|
||||
fi
|
||||
"$HOME/emsdk/emsdk" activate "$EMSCRIPTEN_VERSION"
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
@@ -0,0 +1,61 @@
|
||||
name: Fetch Ziran packages
|
||||
description: >
|
||||
Fetch the packages pinned in ziran.lock. The built Ziran compiler is cached
|
||||
by the runner image and the toolchain commit, so bumping another package
|
||||
such as Kryon keeps it; the package checkouts are cached by the whole lock and fall back
|
||||
to the previous checkouts, so a bump fetches only what changed.
|
||||
|
||||
inputs:
|
||||
save-toolchain:
|
||||
description: >
|
||||
Save the built compiler to the cache. A job that only fetches packages
|
||||
must not, or it would store a toolchain cache without the compiler.
|
||||
default: 'true'
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Read the Ziran toolchain commit
|
||||
id: toolchain
|
||||
shell: sh
|
||||
run: |
|
||||
commit=$(python3 -c 'import json; print(json.load(open("ziran.lock"))["toolchain"]["commit"])')
|
||||
echo "commit=$commit" >> "$GITHUB_OUTPUT"
|
||||
# A compiler built on a newer image needs its newer C library, so
|
||||
# images do not share one: ubuntu-22.04 cannot run a glibc 2.39 build.
|
||||
libc=$(getconf GNU_LIBC_VERSION 2>/dev/null | tr ' ' '-' || true)
|
||||
echo "system=${ImageOS:-local}-${libc:-nolibc}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Restore the Ziran toolchain
|
||||
if: inputs.save-toolchain == 'true'
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
build/ziran-bootstrap
|
||||
build/ziran-toolchain
|
||||
key: ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-${{ steps.toolchain.outputs.commit }}
|
||||
restore-keys: |
|
||||
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
|
||||
|
||||
- name: Restore the Ziran toolchain without saving it
|
||||
if: inputs.save-toolchain != 'true'
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
build/ziran-bootstrap
|
||||
build/ziran-toolchain
|
||||
key: ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-${{ steps.toolchain.outputs.commit }}
|
||||
restore-keys: |
|
||||
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
|
||||
|
||||
- name: Restore the package sources
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/ziran/sources
|
||||
key: ziran-sources-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('ziran.lock') }}
|
||||
restore-keys: |
|
||||
ziran-sources-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
shell: sh
|
||||
run: sh scripts/packages.sh --locked
|
||||
@@ -1,3 +1,10 @@
|
||||
build-essential
|
||||
ripgrep
|
||||
zlib1g-dev
|
||||
libdrm-dev
|
||||
libegl1-mesa-dev
|
||||
libgbm-dev
|
||||
libgles2-mesa-dev
|
||||
libsdl2-dev
|
||||
pkg-config
|
||||
python3-fonttools
|
||||
@@ -1,6 +1,6 @@
|
||||
build-essential
|
||||
gcc-mingw-w64-i686-win32
|
||||
gcc-mingw-w64-x86-64-win32
|
||||
zlib1g-dev
|
||||
libz-mingw-w64-dev
|
||||
zip
|
||||
nsis
|
||||
@@ -0,0 +1 @@
|
||||
6.0.10
|
||||
@@ -24,9 +24,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
with:
|
||||
save-toolchain: 'false'
|
||||
|
||||
- name: Check Version Consistency
|
||||
run: |
|
||||
python3 scripts/check-version.py
|
||||
@@ -38,34 +42,42 @@ jobs:
|
||||
python3 scripts/check-secrets.py --working-tree
|
||||
python3 scripts/check-secrets.py --history
|
||||
|
||||
guard-submodule-urls:
|
||||
name: Submodule URLs are public HTTPS
|
||||
guard-package-urls:
|
||||
name: Package URLs are public HTTPS
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Plain checkout on purpose: the guard must not depend on fetching
|
||||
# the submodules it validates (an SSH URL would break that fetch).
|
||||
# the packages it validates (an SSH URL would break that fetch).
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Reject non-HTTPS submodule URLs
|
||||
- name: Reject submodules and non-HTTPS package URLs
|
||||
run: |
|
||||
set -eu
|
||||
if [ ! -f .gitmodules ]; then echo "no submodules - ok"; exit 0; fi
|
||||
bad=$(grep -nE '^[[:space:]]*url[[:space:]]*=' .gitmodules \
|
||||
| grep -vE '^[0-9]+:[[:space:]]*url[[:space:]]*=[[:space:]]*https://' || true)
|
||||
if [ -n "$bad" ]; then
|
||||
echo "::error::Non-HTTPS submodule URL(s) break fresh clones and CI:$bad"
|
||||
if [ -f .gitmodules ]; then
|
||||
echo "::error::Dependencies are Ziran packages in ziran.toml, not submodules"
|
||||
exit 1
|
||||
fi
|
||||
echo "all submodule URLs HTTPS - ok"
|
||||
bad=$(grep -nE '^[[:space:]]*git[[:space:]]*=' ziran.toml \
|
||||
| grep -vE '^[0-9]+:[[:space:]]*git[[:space:]]*=[[:space:]]*"https://' || true)
|
||||
if [ -n "$bad" ]; then
|
||||
echo "::error::Non-HTTPS package URL(s) break fresh clones and CI:$bad"
|
||||
exit 1
|
||||
fi
|
||||
echo "all package URLs HTTPS - ok"
|
||||
|
||||
test:
|
||||
name: Test
|
||||
# make test split across runners; each shard is a third of its targets.
|
||||
name: Test (${{ matrix.shard }}/3)
|
||||
runs-on: ubuntu-latest
|
||||
# Secret Scan runs beside the tests; nothing here publishes, so it need not gate them.
|
||||
needs:
|
||||
- guard-submodule-urls
|
||||
- secret-scan
|
||||
- guard-package-urls
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shard: [0, 1, 2]
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -73,11 +85,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -95,9 +109,10 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
|
||||
|
||||
- name: Run Tests
|
||||
run: make test
|
||||
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
|
||||
|
||||
- name: Check out sync test server
|
||||
if: matrix.shard == 0
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: kryonlabs/daochi
|
||||
@@ -106,21 +121,27 @@ jobs:
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up Go for sync test server
|
||||
if: matrix.shard == 0
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: .test-server/go.mod
|
||||
cache-dependency-path: .test-server/go.sum
|
||||
|
||||
- name: Verify sync and recovery
|
||||
if: matrix.shard == 0
|
||||
run: |
|
||||
make -C .test-server build
|
||||
make sync-server-test DAOCHI_BIN="$GITHUB_WORKSPACE/.test-server/daochi"
|
||||
|
||||
build-chrome-extension:
|
||||
name: Build Chrome Extension
|
||||
browser-addons:
|
||||
# Builds the web app once, packages it for Chrome and Firefox, and runs
|
||||
# the smoke test in both browsers. It runs beside the tests; a failure in
|
||||
# either still fails the run.
|
||||
name: Build Browser Add-ons
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: test
|
||||
needs:
|
||||
- guard-package-urls
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -128,11 +149,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -150,18 +173,9 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Chrome Extension ZIP
|
||||
- name: Build Chrome and Firefox ZIPs
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
@@ -169,75 +183,18 @@ jobs:
|
||||
make package-unpackaged-assets
|
||||
make chrome-web-store
|
||||
test -f build/dist/inbe-chrome-web-store.zip
|
||||
make firefox-addons
|
||||
test -f build/dist/inbe-firefox-addons.zip
|
||||
make firefox-addons-lint
|
||||
|
||||
- name: Run Web Smoke Test
|
||||
# The web build renders on canvas, so this is also the canvas smoke
|
||||
# test.
|
||||
- name: Run Web Smoke Test (Chrome)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
make web-smoke-test
|
||||
|
||||
- name: Run Canvas Web Smoke Test
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
make web-canvas
|
||||
make web-canvas-smoke-test
|
||||
|
||||
build-firefox-addons:
|
||||
name: Build Firefox Add-on
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: test
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Web apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ env.APT_CACHE_DIR }}
|
||||
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
|
||||
restore-keys: |
|
||||
web-apt-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Install Web Dependencies
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
|
||||
- name: Build Firefox Add-on ZIP
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
node --version
|
||||
make package-unpackaged-assets
|
||||
make firefox-addons
|
||||
test -f build/dist/inbe-firefox-addons.zip
|
||||
make firefox-addons-lint
|
||||
|
||||
- name: Install Firefox (Mozilla build)
|
||||
timeout-minutes: 15
|
||||
run: |
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
name: Cloudflare Pages
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Release
|
||||
types:
|
||||
- completed
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# Refresh available downloads after a release; pushes deploy independently.
|
||||
workflow_run:
|
||||
workflows: [Release]
|
||||
types: [completed]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
@@ -20,28 +21,41 @@ permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: pages-${{ github.event.workflow_run.head_branch || github.ref }}
|
||||
# A failed Release produces a skipped refresh, which must not cancel a push.
|
||||
group: pages-${{ github.ref }}-${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' && 'skipped' || 'deploy' }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Site
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.workflow_run.head_sha || github.ref }}
|
||||
submodules: recursive
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js for the web build
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Resolve published downloads
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
tag=$(gh api repos/waozixyz/inbe/releases/latest --jq .tag_name)
|
||||
version=${tag#v}
|
||||
python3 -c 'import re, sys; assert re.fullmatch(r"(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)", sys.argv[1]), "Invalid published release version"' "$version"
|
||||
echo "SITE_RELEASE_VERSION=$version" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Install Packages
|
||||
if: ${{ !inputs.released_web }}
|
||||
timeout-minutes: 15
|
||||
@@ -49,15 +63,7 @@ jobs:
|
||||
|
||||
- name: Set Up Emscripten
|
||||
if: ${{ !inputs.released_web }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Download Released Web App
|
||||
if: ${{ inputs.released_web }}
|
||||
@@ -65,7 +71,7 @@ jobs:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
version=$(sed -n 's/^#define APP_VERSION_STRING "\([^"]*\)"/\1/p' src/core/version.h)
|
||||
version="$SITE_RELEASE_VERSION"
|
||||
test -n "$version"
|
||||
mkdir -p build/released-web build/dist/web
|
||||
gh release download "v$version" --pattern inbe-web.zip --dir build/released-web
|
||||
@@ -81,6 +87,7 @@ jobs:
|
||||
else
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
node --version
|
||||
make build-laws
|
||||
make site
|
||||
fi
|
||||
test -f build/site/index.html
|
||||
@@ -121,17 +128,13 @@ jobs:
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy build/site --project-name=inbe --branch=${{ github.head_ref || github.ref_name }}
|
||||
command: pages deploy build/site --project-name=inbe --branch=${{ github.head_ref || github.ref_name }} --commit-hash=${{ github.sha }}
|
||||
|
||||
deploy-production:
|
||||
name: Deploy Production
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: |
|
||||
(github.event_name == 'workflow_run' &&
|
||||
github.event.workflow_run.conclusion == 'success' &&
|
||||
github.event.workflow_run.head_branch == 'master') ||
|
||||
(github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
|
||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
||||
|
||||
steps:
|
||||
- name: Download Site Artifact
|
||||
@@ -145,4 +148,4 @@ jobs:
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy build/site --project-name=inbe --branch=master
|
||||
command: pages deploy build/site --project-name=inbe --branch=master --commit-hash=${{ github.sha }}
|
||||
@@ -35,10 +35,12 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Scan Tracked Files and History
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
@@ -21,9 +21,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
with:
|
||||
save-toolchain: 'false'
|
||||
|
||||
- name: Check Version Consistency
|
||||
run: |
|
||||
python3 scripts/check-version.py
|
||||
@@ -47,11 +51,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -83,11 +89,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -105,16 +113,7 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Web ZIP
|
||||
run: |
|
||||
@@ -145,11 +144,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -167,16 +168,7 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Chrome Extension ZIP
|
||||
run: |
|
||||
@@ -207,11 +199,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -229,16 +223,7 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Firefox Add-on ZIP
|
||||
run: |
|
||||
@@ -280,10 +265,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -386,10 +373,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -444,10 +433,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -502,10 +493,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -557,10 +550,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -592,52 +587,6 @@ jobs:
|
||||
path: build/release/linux/*
|
||||
if-no-files-found: error
|
||||
|
||||
build-freebsd:
|
||||
name: Build FreeBSD Package
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: test
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Build FreeBSD .pkg
|
||||
uses: vmactions/freebsd-vm@v1
|
||||
with:
|
||||
release: "14.3"
|
||||
usesh: true
|
||||
prepare: |
|
||||
for attempt in 1 2 3; do
|
||||
pkg install -y node22 python3 gmake cmake pkgconf sdl2 gtk3 curl sqlite3 mesa-libs libdrm hicolor-icon-theme desktop-file-utils && break
|
||||
if [ "$attempt" -eq 3 ]; then
|
||||
exit 1
|
||||
fi
|
||||
pkg update -f
|
||||
sleep 10
|
||||
done
|
||||
run: |
|
||||
set -eu
|
||||
gmake package-freebsd
|
||||
mkdir -p build/release/freebsd
|
||||
find build/dist/freebsd -maxdepth 1 -type f -name '*.pkg' -exec cp {} build/release/freebsd/ \;
|
||||
test -n "$(find build/release/freebsd -type f -print -quit)"
|
||||
|
||||
- name: Upload FreeBSD Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: release-freebsd
|
||||
path: build/release/freebsd/*
|
||||
if-no-files-found: error
|
||||
|
||||
build-windows:
|
||||
name: Build Windows
|
||||
runs-on: ubuntu-latest
|
||||
@@ -650,10 +599,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -672,7 +623,7 @@ jobs:
|
||||
path: |
|
||||
vendor-builds/windows
|
||||
vendor-builds/sqlite
|
||||
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'vendor/kryon/mk/**', 'vendor/kryon/scripts/prepare-raylib-source.sh', 'vendor/kryon/tools/generate-kryon-compat.sh', 'vendor/kryon/vendor/raylib/src/**', 'vendor/kryon/vendor/curl/**', 'vendor/sqlite/**') }}
|
||||
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'ziran.lock') }}
|
||||
restore-keys: |
|
||||
windows-vendor-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
@@ -684,9 +635,6 @@ jobs:
|
||||
if [ -x /usr/bin/x86_64-w64-mingw32-gcc-win32 ]; then
|
||||
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-win32
|
||||
fi
|
||||
if [ -x /usr/bin/i686-w64-mingw32-gcc-win32 ]; then
|
||||
sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-win32
|
||||
fi
|
||||
|
||||
- name: Build Windows ZIP and Setup
|
||||
run: |
|
||||
@@ -713,10 +661,12 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js for Bend proofs
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
@@ -749,7 +699,7 @@ jobs:
|
||||
path: |
|
||||
droid/app/.cxx
|
||||
droid/app/build/intermediates/cxx
|
||||
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'vendor/kryon/src/**/*.c', 'vendor/kryon/include/**/*.h', 'vendor/kryon/vendor/raylib/src/**') }}
|
||||
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'ziran.lock') }}
|
||||
restore-keys: |
|
||||
android-native-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
@@ -834,7 +784,6 @@ jobs:
|
||||
- build-linux-rpm
|
||||
- build-linux-snap
|
||||
- build-linux-flatpak
|
||||
- build-freebsd
|
||||
- build-windows
|
||||
- build-android
|
||||
outputs:
|
||||
@@ -1410,6 +1359,6 @@ jobs:
|
||||
fi
|
||||
"$HOME/wingetcreate" update xyz.waozi.inbe \
|
||||
--version "$VERSION" \
|
||||
--urls "$SETUP_URL#x64" "$SETUP_URL#x86" \
|
||||
--urls "$SETUP_URL#x64" \
|
||||
--submit \
|
||||
--token "$WINGET_TOKEN"
|
||||
@@ -71,3 +71,11 @@ __pycache__/
|
||||
|
||||
/pro/
|
||||
.kotlin/
|
||||
ziran.local.toml
|
||||
|
||||
# Sun salutation reference videos and frames, and check images; the
|
||||
# renderers write their videos and frames under build/.
|
||||
design/sun-salutation/*/reference.mp4
|
||||
design/sun-salutation/*/reference-*.png
|
||||
design/sun-salutation/generated-video-cut/source.mp4
|
||||
design/sun-salutation/girl-parts/head-layers-check.png
|
||||
@@ -1,9 +0,0 @@
|
||||
[submodule "vendor/rini"]
|
||||
path = vendor/rini
|
||||
url = https://github.com/raysan5/rini.git
|
||||
[submodule "vendor/sqlite"]
|
||||
path = vendor/sqlite
|
||||
url = https://github.com/sqlite/sqlite
|
||||
[submodule "vendor/kryon"]
|
||||
path = vendor/kryon
|
||||
url = https://github.com/kryonlabs/kryon.git
|
||||
@@ -2,23 +2,32 @@
|
||||
|
||||
## Ownership and releases
|
||||
|
||||
- Never edit `vendor/`. Change Kryon in its upstream repository on `master`,
|
||||
commit and push there, then update only Inbe's clean submodule pointer.
|
||||
Run `make no-vendor-edits` after dependency changes.
|
||||
- Dependencies are Ziran packages pinned in `ziran.toml`/`ziran.lock` and
|
||||
linked under `build/packages/`; there is no `vendor/`. Never edit a package
|
||||
checkout. Change Kryon (or any dependency) in its own repository on `master`,
|
||||
commit and push there, then run `ziran update NAME` here and commit
|
||||
`ziran.lock`. Run `make package-check` after dependency changes. For local
|
||||
debugging, map a package to a working repository in the ignored
|
||||
`ziran.local.toml`; release builds use `PACKAGE_FLAGS=--locked`.
|
||||
- Add the numeric release to `CHANGELOG.md`, then run `./update_version.sh`.
|
||||
The canonical macros are `APP_VERSION_STRING`, `APP_VERSION_MAJOR`,
|
||||
`APP_VERSION_MINOR`, and `APP_VERSION_PATCH`; do not create aliases.
|
||||
Only the GitHub Actions release workflow creates or pushes release tags.
|
||||
- Translate changed strings in every affected locale; no English placeholders.
|
||||
- `make locale-translated-test` fails on any locale string that still equals
|
||||
its English text. Translate it; add it to `tests/locale_same_as_english.txt`
|
||||
only when it is a real brand name, loanword, or format string.
|
||||
|
||||
## Machine-checked contracts
|
||||
|
||||
- `make build-laws` is mandatory for native, web, and Windows artifacts;
|
||||
Gradle and CMake enforce the same version and proof checks independently.
|
||||
Never bypass a failed gate or hand-edit generated policy tables.
|
||||
- Retry behavior lives in `laws/sync_retry/main.bend`. Implement changes there
|
||||
and prove `LAWS.bend` in `PROOF.bend`; the app consumes the checked table.
|
||||
Do not weaken laws to make an implementation pass. Contract changes require
|
||||
Never bypass a failed gate.
|
||||
- Laws are Ziran `#law` obligations checked by `ziran check`. Retry behavior
|
||||
lives in `src/app/sync_retry.zi` with its laws in `sync_retry_laws.zi`;
|
||||
private-data names live in `src/storage/storage_layout.zi` with laws in
|
||||
`storage_layout_laws.zi`. Change the implementation freely, but do not
|
||||
weaken laws to make an implementation pass. Contract changes require
|
||||
explicit product intent and separate review from implementation changes.
|
||||
- Run `make proof-test sync-recovery-test version-test` for these contracts.
|
||||
Coverage, trust boundaries, and the next proof migrations are described in
|
||||
@@ -26,7 +35,8 @@
|
||||
|
||||
## Public UI and sync boundaries
|
||||
|
||||
- Use `Text(TextProps)`, `Image(ImageProps)`, and `Button(ButtonProps)` directly.
|
||||
- Use current Kryon calls `Text(session, TextProps)`,
|
||||
`Image(session, ImageProps)`, and `Button(session, ButtonProps)` directly.
|
||||
Semantic images use the same `Image` surface. No positional Text, legacy
|
||||
drawing calls, alternate widgets, or thin local forwarding wrappers.
|
||||
Keep meaningful compositions and gestures; use standard Checkbox and Toggle.
|
||||
@@ -34,9 +44,17 @@
|
||||
- If a required widget capability is missing, implement the reusable primitive
|
||||
upstream first. Do not work around it in Inbe or generated code.
|
||||
- Use sync protocol v6 and the clean Kryon API; no new `Ksync` names or wrappers.
|
||||
Keep legacy wire strings only for migration. Migrations must be automatic,
|
||||
resumable, and non-destructive, preserving tombstones and legacy projections
|
||||
while supported older installations can return.
|
||||
Remove old wire projections and format fallbacks as the storage and sync
|
||||
modules are converted to current Ziran. Keep the current protocol and data
|
||||
model in Inbe rather than adding compatibility adapters.
|
||||
- Keep on-disk schema and user-data upgrade paths. Convert their implementation
|
||||
to checked Ziran; do not delete a migration merely because it handles an old
|
||||
database. An upgrade must preserve existing data, and its replacement needs
|
||||
a test using an older database fixture before the prior path is removed.
|
||||
- A `.zi` filename is not a completed migration. All owned application
|
||||
behavior, including storage upgrades, must compile as current Ziran. Prefer
|
||||
direct Ziran foreign imports for native libraries; migrate owned C adapters
|
||||
as Ziran gains the required ABI support. Never keep application policy in C.
|
||||
|
||||
## Product behavior and readability
|
||||
|
||||
@@ -49,11 +67,3 @@
|
||||
- Use descriptive names, explicit control flow, and focused helpers. Never
|
||||
compress multiple statements, branches, declarations, or checks onto one line.
|
||||
Format changed source, inspect the final diff, and run `git diff --check`.
|
||||
|
||||
## Bend
|
||||
|
||||
When using Bend:
|
||||
- run `bend guide` to learn it
|
||||
- use `LAWS.bend` to keep important rules
|
||||
- run `bend PROOF.bend` before committing
|
||||
- parallelize the code whenever possible
|
||||
@@ -1,4 +1,27 @@
|
||||
# Changelog
|
||||
## [2.0.7] - 2026-10-01
|
||||
### Added
|
||||
- Mini mode provides a compact practice window without changing your saved window or navigation settings.
|
||||
- Habits now have separate overview, statistics, and edit pages, with a dialog for recording daily counts and clearer week and month calendars.
|
||||
|
||||
### Changed
|
||||
- Prebuilt FreeBSD packages are temporarily unavailable.
|
||||
- Sun Salutation now uses a painted character with smooth movement through all twelve poses, consistent proportions, and clean transitions without crossfading.
|
||||
- Practice customization and guides use the full screen, and Sun Salutation shows a simple seconds counter without the distracting progress bar.
|
||||
- Improved phone performance, touch responsiveness, text sizing, and Japanese and Chinese text wrapping.
|
||||
- Refined Settings, Profile, Lists, habit cards, session controls, and mood check-in buttons. Desktop users can zoom with Ctrl and the mouse wheel.
|
||||
|
||||
### Fixed
|
||||
- Appearance dropdown menus stay above the Layout card and other settings, keeping every option visible and selectable.
|
||||
- Practice Customize and How-to actions now open the correct pages, and carousel swipes reliably change practices.
|
||||
- Animated screens keep their controls visible, and navigation transitions finish before accepting the next action.
|
||||
- Habit statistics no longer crash, and saved habit counts and imported records are retained correctly.
|
||||
- Opening a habit card keeps your place in the list instead of scrolling back to the top.
|
||||
- Habit day counts sit centered inside each circle, in a color that stays readable on every habit color.
|
||||
- Deleted sync records stay deleted across devices, and restoring an account preserves local changes waiting to sync.
|
||||
- Web and browser add-on text stays sharp at different text sizes, display scales, and zoom levels with the Canvas renderer.
|
||||
- Cancel reliably closes the exit-session dialog without interrupting the practice.
|
||||
|
||||
## [2.0.6] - 2026-09-22
|
||||
### Fixed
|
||||
- Selected app color themes now keep their backgrounds, cards, and text visible. Theme catalogs are included in every build, and an unavailable palette falls back to readable built-in colors.
|
||||
|
||||
@@ -29,10 +29,10 @@ optionally sync user-owned data through a Daochi-compatible sync server.
|
||||
|
||||
## Build
|
||||
|
||||
The build host needs Node.js 22.18 or newer for mandatory Bend proof checking,
|
||||
as well as Python 3 and the platform's native build dependencies. Node and Bend
|
||||
are build tools; they are not installed with the app. See
|
||||
[build contracts and proofs](docs/build-laws-plan.md) for the checked behavior.
|
||||
The build checks Inbe's laws with the Ziran compiler (`ziran check`); no
|
||||
separate proof tool is needed. The build host needs Python 3 and the platform's
|
||||
native build dependencies. See [build laws](docs/build-laws-plan.md) for the
|
||||
checked behavior.
|
||||
|
||||
Initialize the submodules once:
|
||||
|
||||
@@ -86,16 +86,24 @@ This uses disposable client databases and a loopback server; see
|
||||
Native binaries are written to `build/bin/<platform>/`. Release artifacts are
|
||||
written under `build/dist/`.
|
||||
|
||||
To debug Inbe against the root Kryon checkout instead of the vendored
|
||||
submodule, override `KRYON_DIR`:
|
||||
Dependencies, including Kryon and the Ziran toolchain, are pinned in
|
||||
`ziran.lock`. `make` fetches them into the Ziran package cache and links them
|
||||
under `build/packages/`; `sh scripts/packages.sh` does the same by hand.
|
||||
Builders that supply the sources themselves need no network: put Git checkouts
|
||||
containing the locked commits (including Kryon's `raylib` submodule) in
|
||||
`$ZIRAN_PACKAGE_SOURCES`, or declare them as F-Droid srclibs, which are found
|
||||
in `../srclib` automatically.
|
||||
|
||||
```bash
|
||||
make run KRYON_DIR=../kryon
|
||||
To debug Inbe against the root Kryon checkout, map it in an ignored
|
||||
`ziran.local.toml`:
|
||||
|
||||
```toml
|
||||
[overrides]
|
||||
kryon = "../../kryonlabs/kryon"
|
||||
```
|
||||
|
||||
Use this only for local debugging. Permanent Kryon fixes should be committed in
|
||||
the root Kryon repository and then brought into Inbe by updating
|
||||
`vendor/kryon`.
|
||||
the root Kryon repository and then brought into Inbe with `ziran update kryon`.
|
||||
|
||||
## Project Layout
|
||||
|
||||
@@ -104,7 +112,7 @@ the root Kryon repository and then brought into Inbe by updating
|
||||
- `locales/` - translations
|
||||
- `droid/` - Android project
|
||||
- `site/` - website
|
||||
- `vendor/kryon/` - Kryon UI/runtime submodule
|
||||
- `ziran.toml`, `ziran.lock` - pinned Ziran toolchain and dependencies
|
||||
|
||||
## Support
|
||||
|
||||
|
||||
@@ -11,3 +11,4 @@ abcdefghijklmnopqrstuvwxyz
|
||||
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
|
||||
。,、!?:;()[]「」『』ー〜・
|
||||
中文简体繁體日本語한국어
|
||||
·—›
|
||||
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 11 KiB |