bender 0.32.0

A dependency management tool for hardware projects.
name: cli_regression

on:
  pull_request:
  workflow_dispatch:

concurrency:
  group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
  cancel-in-progress: true

jobs:
  test:
    runs-on: ${{ matrix.runner }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - runner: ubuntu-latest
            target: x86_64-unknown-linux-gnu
            golden_bin: target/regression-golden/bender
          - runner: windows-latest
            target: x86_64-pc-windows-msvc
            golden_bin: target/regression-golden/bender.exe
          - runner: macos-latest
            target: aarch64-apple-darwin
            golden_bin: target/regression-golden/bender
    steps:
      - uses: actions/checkout@v6
        with:
          submodules: recursive
      - uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: stable
      - uses: Swatinem/rust-cache@v2
        with:
          shared-key: cargo-${{ runner.os }}-stable
      - name: Restore CLI regression golden binary
        uses: actions/cache/restore@v5
        with:
          path: target/regression-golden
          key: golden-bender-${{ matrix.target }}-${{ github.event.pull_request.base.sha || github.sha }}
      - name: Run CLI Regression
        run: cargo test --test cli_regression -- --ignored
        env:
          BENDER_TEST_GOLDEN_BRANCH: ${{ github.base_ref }}
          BENDER_TEST_GOLDEN_BIN: ${{ matrix.golden_bin }}