fix: feature-gating hygiene + panic removal + docs.rs metadata #316
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
| # Project: hyperi-rustlib | |
| # File: .github/workflows/ci.yml | |
| # Purpose: CI pipeline | |
| # | |
| # License: FSL-1.1-ALv2 | |
| # Copyright: (c) 2026 HYPERI PTY LIMITED | |
| name: CI | |
| on: | |
| push: | |
| branches: ["**"] | |
| paths-ignore: | |
| - ".claude/**" | |
| - ".cursor/**" | |
| - ".gemini/**" | |
| - "hyperi-ai/**" | |
| - "docs/**" | |
| - "**.md" | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| type: string | |
| required: true | |
| description: "Tag to publish (e.g. v1.20.1)" | |
| permissions: | |
| contents: write | |
| issues: write | |
| packages: write | |
| pull-requests: write | |
| jobs: | |
| feature-matrix: | |
| name: Feature matrix check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install native build deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y librdkafka-dev libgit2-dev libzstd-dev pkg-config | |
| - name: Install cargo-hack | |
| uses: taiki-e/install-action@cargo-hack | |
| - name: Check each feature in isolation | |
| run: cargo hack --each-feature --no-dev-deps check --lib | |
| ci: | |
| uses: hyperi-io/hyperi-ci/.github/workflows/rust-ci.yml@main | |
| with: | |
| publish-target: oss | |
| tag: ${{ inputs.tag || '' }} | |
| secrets: inherit |