diff --git a/.gitea/workflows/next.yml b/.gitea/workflows/next.yml
new file mode 100644
index 00000000..575f5c66
--- /dev/null
+++ b/.gitea/workflows/next.yml
@@ -0,0 +1,45 @@
+name: next-build
+
+on:
+ push:
+ branches: [next]
+
+jobs:
+ candidate:
+ runs-on: alkane-ci
+ env:
+ WX_PREFIX: /root/.cache/wx-3.3.3-linux
+ WX_RS_WXCONFIG: /root/.cache/wx-3.3.3-linux/bin/wx-config
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Install build dependencies
+ run: |
+ apt-get update -qq
+ apt-get install -y -qq --no-install-recommends libssl-dev pkg-config ca-certificates
+ - uses: actions/cache@v4
+ with:
+ path: /root/.cache/wx-3.3.3-linux
+ key: wx-3.3.3-${{ runner.os }}-${{ hashFiles('thirdparty/wx-rs/VERSION') }}
+ - name: Build wxWidgets
+ run: |
+ if [ ! -x "$WX_PREFIX/bin/wx-config" ]; then
+ bash scripts/build-wx-linux.sh
+ fi
+ - name: Build release candidate
+ run: cargo build --release -p alkane-gui --offline
+ - name: Select candidate version
+ id: version
+ run: bash ci/compute-rc-version.sh >> "$GITHUB_OUTPUT"
+ - name: Package candidate
+ if: steps.version.outputs.release == 'true'
+ run: |
+ mkdir -p dist
+ cp target/release/alkane-toolkit dist/
+ tar -C dist -czf "dist/alkane-toolkit-${{ steps.version.outputs.version }}-linux-x86_64.tar.gz" alkane-toolkit
+ - name: Create private prerelease
+ if: steps.version.outputs.release == 'true'
+ env:
+ GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: python3 ci/release-rc.py "${{ steps.version.outputs.tag }}" true "dist/alkane-toolkit-${{ steps.version.outputs.version }}-linux-x86_64.tar.gz"
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml
index 62be13b3..3844c683 100644
--- a/.gitea/workflows/release.yml
+++ b/.gitea/workflows/release.yml
@@ -25,11 +25,9 @@ jobs:
run: bash ci/compute-version.sh | tee -a "$GITHUB_OUTPUT"
- name: Test version logic
- if: steps.ver.outputs.release == 'true'
run: bash ci/test-compute-version.sh
- name: Install build dependencies
- if: steps.ver.outputs.release == 'true'
run: |
apt-get update -qq
apt-get install -y -qq --no-install-recommends \
@@ -37,14 +35,12 @@ jobs:
echo "libssl-dev + pkg-config installed (openssl-sys needs them)"
- name: Cache vendored wxWidgets build
- if: steps.ver.outputs.release == 'true'
uses: actions/cache@v4
with:
path: /root/.cache/wx-3.3.3-linux
key: wx-3.3.3-${{ runner.os }}-${{ hashFiles('thirdparty/wx-rs/VERSION') }}
- name: Build wxWidgets (once, then cached)
- if: steps.ver.outputs.release == 'true'
run: |
if [ ! -x "$WX_PREFIX/bin/wx-config" ]; then
bash scripts/build-wx-linux.sh
@@ -53,7 +49,6 @@ jobs:
fi
- name: Clippy (our crate, warnings are errors)
- if: steps.ver.outputs.release == 'true'
run: |
rustup component add clippy >/dev/null 2>&1 || true
cargo clippy -p alkane-gui --no-deps --release --bins --offline -- -D warnings
@@ -65,17 +60,14 @@ jobs:
grep -m1 '^version' Cargo.toml
- name: Build release
- if: steps.ver.outputs.release == 'true'
run: |
cargo build --release -p alkane-gui --offline
- name: Unit tests
- if: steps.ver.outputs.release == 'true'
run: |
cargo test -p alkane-gui --offline
- name: Microbenchmarks
- if: steps.ver.outputs.release == 'true'
run: |
# Capture the bench stdout for the weighted-average delta badge (round 19
# #1) while keeping the step a hard gate: pipefail preserves cargo's exit
@@ -85,7 +77,6 @@ jobs:
| tee bench-current.txt
- name: Headless UI self-test
- if: steps.ver.outputs.release == 'true'
run: |
apt-get update -qq && apt-get install -y -qq --no-install-recommends \
xvfb xauth dbus-x11 fonts-dejavu-core >/dev/null
@@ -93,7 +84,6 @@ jobs:
xvfb-run -a env GDK_BACKEND=x11 ALKANE_SELFTEST=1 "$BIN"
- name: Dependency audit (best-effort)
- if: steps.ver.outputs.release == 'true'
continue-on-error: true
run: |
if command -v cargo-audit >/dev/null 2>&1; then
@@ -111,7 +101,6 @@ jobs:
# already installed by the self-test step above.
- name: Coverage (best-effort)
id: cov
- if: steps.ver.outputs.release == 'true'
continue-on-error: true
run: |
rustup component add llvm-tools-preview >/dev/null 2>&1 || true
@@ -136,6 +125,16 @@ jobs:
echo "cargo-llvm-cov unavailable; coverage badge left as committed"
fi
+ - name: Microbenchmark coverage
+ id: benchcov
+ run: |
+ command -v cargo-llvm-cov >/dev/null
+ PCT=$(bash ci/bench-coverage.sh --summary-only \
+ | awk '/^TOTAL/{gsub(/%/,"",$10); print $10}')
+ [ -n "$PCT" ] || { echo "microbenchmark coverage unavailable" >&2; exit 1; }
+ echo "pct=${PCT}" >> "$GITHUB_OUTPUT"
+ echo "microbenchmark line coverage: ${PCT}%"
+
# Refresh the committed README badges from live metrics and push any change
# back to main. Best-effort: a locked-down runner that can't push must not
# fail the release. A badges-only push does not bump the version (see
@@ -151,6 +150,7 @@ jobs:
# Update the coverage badge only when the coverage step produced a number;
# otherwise leave the committed coverage.svg untouched.
COV="${{ steps.cov.outputs.pct }}"
+ BENCH_COV="${{ steps.benchcov.outputs.pct }}"
COV_ARG=""
[ -n "$COV" ] && COV_ARG="--coverage $COV"
# Weighted-average microbench delta vs the previous release (round 19 #1).
@@ -159,6 +159,7 @@ jobs:
BENCH_DELTA=$(python3 ci/bench-badge.py --current bench-current.txt \
--baseline badges/bench-baseline.json 2>/dev/null || echo NEW)
python3 ci/gen-badges.py --tests "${PASS:-0}" $COV_ARG \
+ --bench-coverage "$BENCH_COV" \
--bench-delta "${BENCH_DELTA:-NEW}" --bench "row-render + scan-parse"
if [ -n "$(git status --porcelain badges)" ]; then
git config user.name "alkane-ci"
diff --git a/.gitea/workflows/verify.yml b/.gitea/workflows/verify.yml
index a0e28191..70585d37 100644
--- a/.gitea/workflows/verify.yml
+++ b/.gitea/workflows/verify.yml
@@ -6,8 +6,9 @@ name: verify
# these checks before it cuts a release -- so no work is duplicated on main).
on:
pull_request:
+ branches-ignore: [next]
push:
- branches-ignore: [main]
+ branches-ignore: [main, next]
jobs:
verify:
diff --git a/.gitignore b/.gitignore
index 3f7ffa56..6b41dc3c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/target
**/target
.claude/
+__pycache__/
diff --git a/README.md b/README.md
index 094f9971..e446a078 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,12 @@
# alkane-toolkit
-[](https://gitea.bluefla.re/blueflare/alkane-toolkit/actions)
+[](https://gitea.bluefla.re/blueflare/alkane-toolkit/actions)



+

-
+


@@ -82,11 +83,12 @@ xvfb-run -a env ALKANE_SELFTEST=1 \
ci/coverage.sh --summary-only # coverage (tests + self-test)
```
-CI mirrors these: `verify.yml` runs the lint, tests, benchmarks, self-test, and
-a best-effort dependency audit on every pull request and branch push;
-`release.yml` repeats them on `main` and cuts an `X.Y.Z` release with the built
-binary attached when the change warrants it. Dependencies are vendored under
-`vendor/`, so builds never touch the network.
+CI mirrors these: `verify.yml` runs lint, tests, benchmarks, the self-test, and
+a dependency audit on development branches. `release.yml` runs the full gate
+on every `main` push and cuts an `X.Y.Z` release when the change warrants it.
+`next.yml` builds release candidates with little testing and publishes `-rc`
+releases. Dependencies are vendored under `vendor/`, so builds never touch the
+network.
## Architecture
diff --git a/badges/bench-coverage.svg b/badges/bench-coverage.svg
new file mode 100644
index 00000000..009c3f7f
--- /dev/null
+++ b/badges/bench-coverage.svg
@@ -0,0 +1,19 @@
+
diff --git a/badges/quality.svg b/badges/quality.svg
index 2a3aee2e..d9affe53 100644
--- a/badges/quality.svg
+++ b/badges/quality.svg
@@ -1,19 +1,19 @@
-