name: checks on: push: branches: [main] pull_request: permissions: contents: read jobs: verify: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Keep game artifacts out of Git run: | python3 tools/check_public_tree.py python3 tools/check_public_tree.py --history - name: Test offline research tooling run: python3 -m unittest discover -s tests -v - name: Install Rust toolchain run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy - name: Check formatting and lint run: | cargo +stable fmt --all -- --check cargo +stable clippy --workspace --all-targets -- -D warnings - name: Test voxel kernel correctness run: cargo +stable test --workspace portable-mod: strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-26, windows-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.12' - uses: actions/setup-java@v4 with: distribution: temurin java-version: '25' - name: Compile original mod and test metrics run: python tools/build_mod.py - name: Verify streaming JFR analysis against the JDK exporter run: python tools/test_jfr.py - name: Build pinned portable packs run: python tools/build_pack.py - name: Measure isolated worker pacing on this platform run: python -c "from tools.build_mod import benchmark_workers; benchmark_workers()" - name: Measure isolated debounce queue polling run: python -c "from tools.build_mod import benchmark_debounce; benchmark_debounce()" - name: Measure wakeable idle queue latency run: python -c "from tools.build_mod import benchmark_idle; benchmark_idle()" - name: Measure object allocations with compact headers off and on run: python -c "from tools.build_mod import benchmark_headers; benchmark_headers()" - name: Test pack integrity and comparisons run: python -m unittest discover -s tests -v - name: Compile the private dispatch fixture run: python -c "from tools.build_mod import build_dispatch_fixture; build_dispatch_fixture()" - name: Install headless graphics libraries for applied-hook checks if: runner.os == 'Linux' run: sudo apt-get update && sudo apt-get install -y xvfb libgl1 libegl1 libvulkan1 mesa-vulkan-drivers libasound2t64 libxkbcommon0 - name: Exercise the applied dispatcher hooks and upstream rejection path if: runner.os == 'Linux' run: python tools/test_dispatch.py - name: Upload original mod and pack manifests only uses: actions/upload-artifact@v4 with: name: horizon-${{ matrix.os }} path: | dist/*.mrpack dist/horizon-lab-*.jar dist/worker-pacing-benchmark.txt dist/debounce-queue-benchmark.txt dist/idle-queue-benchmark.txt dist/object-header-benchmark.txt dist/dispatch-integration.json