Split the CLI and API into separate crates #685
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 | |
| paths: | |
| - '**.rs' | |
| - 'Cargo.{toml,lock}' | |
| - '.github/workflows/ci.yml' | |
| - 'etc/*.toml' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '**.rs' | |
| - 'Cargo.{toml,lock}' | |
| - '.github/workflows/ci.yml' | |
| - 'etc/*.toml' | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| rust: [1.84.0, stable, beta, nightly] | |
| # Test with no features, default features ("") and all features. | |
| # Ordered fewest features to most features. | |
| args: ["--no-default-features", "", "--all-features"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: hecrj/setup-rust-action@v2 | |
| with: | |
| rust-version: ${{ matrix.rust }} | |
| - run: cargo build --verbose ${{ matrix.args }} | |
| test: | |
| name: test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| rust: [1.84.0, stable, beta, nightly] | |
| # Test with no features, default features ("") and all features. | |
| # Ordered fewest features to most features. | |
| args: ["--no-default-features", "", "--all-features"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: hecrj/setup-rust-action@v2 | |
| with: | |
| rust-version: ${{ matrix.rust }} | |
| - run: cargo test --verbose ${{ matrix.args }} | |
| clippy: | |
| name: clippy | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| rust: [stable] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: hecrj/setup-rust-action@v2 | |
| with: | |
| rust-version: ${{ matrix.rust }} | |
| - run: cargo clippy --all -- -D warnings | |
| fmt: | |
| name: fmt | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| rust: [stable] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: hecrj/setup-rust-action@v2 | |
| with: | |
| rust-version: ${{ matrix.rust }} | |
| - run: cargo fmt --check |