chore: remove gitignored and local-only files from tracking #48
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: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| core: | |
| name: Core (${{ matrix.toolchain }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| toolchain: [stable, beta] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - name: Build core crate | |
| run: cargo build -p xraytsubaki --verbose | |
| - name: Run core crate tests | |
| run: cargo test -p xraytsubaki --verbose | |
| benchmark: | |
| name: Benchmark Regression | |
| runs-on: ubuntu-latest | |
| needs: core | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: Run single benchmark | |
| run: cargo bench -p xraytsubaki --bench xas_group_benchmark_single -- --noplot | |
| - name: Run parallel benchmark | |
| run: cargo bench -p xraytsubaki --bench xas_group_benchmark_parallel -- --noplot | |
| - name: Evaluate benchmark regression (informational on PR, blocking on push) | |
| run: | | |
| MODE="informational" | |
| if [ "${{ github.event_name }}" = "push" ]; then | |
| MODE="blocking" | |
| fi | |
| ./crates/xraytsubaki/scripts/bench_regression_gate.sh "$MODE" | |
| - name: Upload benchmark artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-artifacts | |
| path: | | |
| target/criterion | |
| target/bench-regression-summary.md | |
| gui: | |
| name: GUI (stable) | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: Build GUI crate | |
| run: cargo check --manifest-path xraytsubaki-gui/Cargo.toml --verbose |