name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test
- name: Verify launch demonstration
shell: bash
run: |
cargo build --locked
python3 scripts/launch-demo.py --texio "target/debug/texio${{ runner.os == 'Windows' && '.exe' || '' }}"
- name: Reproduce benchmark
if: runner.os == 'Linux'
run: |
cargo build --release --locked
bash scripts/test-recipes.sh target/release/texio
python3 benchmarks/run.py --texio target/release/texio --release ci --output /tmp/texio-benchmark.json
python3 benchmarks/check.py /tmp/texio-benchmark.json