This repository was archived by the owner on Jul 19, 2026. It is now read-only.
optimizer: include doctrine metadata in exported report #38
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, master] | |
| pull_request: | |
| branches: [main, master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -Dwarnings | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.toolchain }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| toolchain: [stable, nightly] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim (optional local-only dependency) | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Test workspace | |
| run: cargo test --workspace | |
| - name: Test with temporal feature | |
| run: cargo test --workspace --features temporal | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Clippy workspace | |
| run: cargo clippy --workspace -- -D warnings | |
| - name: Clippy with temporal | |
| run: cargo clippy --workspace --features temporal -- -D warnings | |
| fmt: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| audit: | |
| name: Security Audit | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: rustsec/audit-check@v2.0.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| python: | |
| name: Python Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - run: pip install pytest numpy | |
| - run: pytest python/tests/ -v | |
| continue-on-error: true | |
| bench-compile: | |
| name: Benchmarks compile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Stub phi-sim | |
| run: | | |
| mkdir -p ../phi-sim/src | |
| printf '[package]\nname = "phi-sim"\nversion = "0.5.0"\nedition = "2021"\n' > ../phi-sim/Cargo.toml | |
| echo '// stub' > ../phi-sim/src/lib.rs | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: | | |
| cargo bench -p strix-core --no-run | |
| cargo bench -p strix-auction --no-run |