greentic-deployer 0.5.21

Greentic deployer runtime for plan construction and deployment-pack dispatch
Documentation
name: CI
on:
  workflow_call:
  pull_request:

permissions:
  contents: read

concurrency:
  group: ci-${{ github.ref }}
  cancel-in-progress: true

jobs:
  ci:
    uses: greenticai/.github/.github/workflows/pr-ci.yml@main
    with:
      variant: host

  # Entangled steps from ci/local_check.sh that pr-ci.yml does not cover:
  # scaffold replay, fixture gtpack build, cargo doc, feature-matrix builds,
  # and extension-gated tests.
  extras:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    env:
      CARGO_TERM_COLOR: always
    steps:
      - name: Free disk space
        run: |
          df -h
          sudo rm -rf /usr/share/dotnet /opt/ghc /opt/hostedtoolcache/CodeQL
          df -h
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@1.95.0
        with:
          components: clippy,rustfmt
      - uses: Swatinem/rust-cache@v2
      - name: Install cargo-binstall
        uses: cargo-bins/cargo-binstall@main
      - name: Add Cargo bin to PATH
        run: echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> "$GITHUB_PATH"
      - name: Install Greentic fixture tools
        run: ci/ensure_fixture_tools.sh

      - name: Replay deployer scaffolds
        run: cargo run --features internal-tools --bin replay_deployer_scaffolds

      - name: Build and validate fixture gtpacks
        run: cargo run --features internal-tools --bin build_fixture_gtpacks

      - name: Cargo doc
        run: cargo doc --no-deps

      - name: Build (no default features)
        run: cargo build --no-default-features