Files
horizon-airdef/.github/workflows/ci.yml
T
2026-10-03 21:11:30 +02:00

59 lines
1.9 KiB
YAML

name: checks
on:
push:
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: 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: Test pack integrity and comparisons
run: python -m unittest discover -s tests -v
- 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