lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit f56e6fd3f1e634ecb572fe9ee26ab57f7f8fe223
parent 21cb19263e86d6fb90362a4696ac8de11b7d560f
Author: triesap <tyson@radroots.org>
Date:   Mon, 23 Feb 2026 16:59:52 +0000

ci: guard against committed ts artifact drift


- add a ci guard script for tracked files under crates/*/bindings/**
- run the guard in sdk-contract-ci before rust check and test steps
- run the guard in sdk-models-sync-pr before export and sync steps
- run cargo check -q -p xtask and cargo test -q -p xtask

Diffstat:
M.github/workflows/sdk-contract-ci.yml | 3+++
M.github/workflows/sdk-core-sync-pr.yml | 3+++
Ascripts/ci/guard_committed_ts_artifacts.sh | 12++++++++++++
3 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/sdk-contract-ci.yml b/.github/workflows/sdk-contract-ci.yml @@ -13,6 +13,9 @@ jobs: - name: checkout uses: actions/checkout@v4 + - name: guard committed ts artifacts + run: ./scripts/ci/guard_committed_ts_artifacts.sh + - name: install rust toolchain uses: dtolnay/rust-toolchain@stable with: diff --git a/.github/workflows/sdk-core-sync-pr.yml b/.github/workflows/sdk-core-sync-pr.yml @@ -23,6 +23,9 @@ jobs: - name: checkout uses: actions/checkout@v4 + - name: guard committed ts artifacts + run: ./scripts/ci/guard_committed_ts_artifacts.sh + - name: detect sync token id: sync_token run: | diff --git a/scripts/ci/guard_committed_ts_artifacts.sh b/scripts/ci/guard_committed_ts_artifacts.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euo pipefail + +tracked_artifacts="$(git ls-files 'crates/*/bindings/**')" + +if [[ -n "$tracked_artifacts" ]]; then + echo "committed ts artifacts are not allowed under crates/*/bindings/**" + echo "$tracked_artifacts" + exit 1 +fi + +echo "no committed ts artifacts found under crates/*/bindings/**"