Files
markbaseengine/.gitea/workflows/ci.yaml
T
MarkBase Admin 8a66b9086a
CI / build (push) Waiting to run
CI / unit-tests (push) Blocked by required conditions
CI / lint (push) Blocked by required conditions
v2: Initial clean branch with unit tests + CI/CD pipeline
- Started from ac75faa (initial E4B-MarkBase integration)
- Kept Sources/ (all engine code) + Package.swift + .gitignore
- Removed all ad-hoc tests, documentation, scripts, Python files
- Added Tests/00_Unit/ (MathTest, TokenizerTest, SamplerTest)
- Added .gitea/workflows/ci.yaml (build + unit tests + lint)
- Added Scripts/check_resources.sh (memory-aware test runner)
- Added Tests/Manifest.json (resource requirements for all tests)
- Focus: 4-bit quantized models only
2026-07-05 13:29:25 +08:00

43 lines
864 B
YAML

name: CI
on:
push:
branches: [ v2 ]
pull_request:
branches: [ v2 ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build Swift
run: swift build -c debug
- name: Build Release
run: swift build -c release
unit-tests:
needs: build
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Run Unit Tests
run: swift test --filter "00_Unit"
lint:
needs: build
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Check for debug prints
run: |
if grep -r "print(" Sources/MarkBase/ --include="*.swift" | grep -v "//.*print" | grep -v "Error"; then
echo "WARNING: Debug print() found in Sources/"
exit 0
fi
echo "No debug prints found"