docs: CHANGELOG + README + README.ko reference Working Memory Cliff t… #417
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| arch: x86_64 | |
| cmake_extra: "" | |
| - os: macos-latest | |
| arch: arm64 | |
| cmake_extra: "" | |
| - os: windows-latest | |
| arch: x64 | |
| cmake_extra: "" | |
| runs-on: ${{ matrix.os }} | |
| name: ${{ matrix.os }} (${{ matrix.arch }}) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install dependencies (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y cmake | |
| - name: Configure CMake | |
| run: > | |
| cmake -B build | |
| -DCMAKE_BUILD_TYPE=Release | |
| -DTQ_BUILD_TESTS=ON | |
| -DTQ_BUILD_BENCH=ON | |
| -DTQ_BUILD_SERVER=ON | |
| ${{ matrix.cmake_extra }} | |
| - name: Build (Unix) | |
| if: runner.os != 'Windows' | |
| run: cmake --build build --config Release -j$(nproc 2>/dev/null || sysctl -n hw.ncpu) | |
| - name: Build (Windows) | |
| if: runner.os == 'Windows' | |
| run: cmake --build build --config Release -j $env:NUMBER_OF_PROCESSORS | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure --timeout 120 -C Release | |
| # 10-year position guard: fail CI if structural moats erode. | |
| # Runs on Linux only (POSIX shell). Checks single-header LOC/size, | |
| # zero-deps, papers count, honest correction track, PyPI presence. | |
| - name: 10-year position guard | |
| if: matrix.os == 'ubuntu-latest' | |
| shell: bash | |
| run: | | |
| chmod +x score.sh | |
| bash score.sh --position 2>&1 | tee /tmp/position.log | |
| # Extract dimension percentage; require >= 75%. | |
| pct=$(grep -E '^\s*position\s' /tmp/position.log | awk '{print $2}' | tr -d '%') | |
| echo "position dimension: ${pct}%" | |
| if [ -z "$pct" ]; then | |
| echo "could not parse position score" | |
| exit 1 | |
| fi | |
| # bash arithmetic: integer compare | |
| if [ "${pct%.*}" -lt 75 ]; then | |
| echo "::error::Position dimension regressed below 75% (${pct}%)" | |
| exit 1 | |
| fi | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-${{ matrix.os }}-${{ matrix.arch }} | |
| path: build/Testing/ | |
| retention-days: 7 |