fix: update context size precedence to prioritize backend configurati… #1043
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: Validate model-cli | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'v[0-9]*' | |
| tags: | |
| - 'v*' | |
| paths: | |
| - 'cmd/cli/**' | |
| - '.github/workflows/cli-validate.yml' | |
| pull_request: | |
| paths: | |
| - 'cmd/cli/**' | |
| - '.github/workflows/cli-validate.yml' | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| matrix: ${{ steps.generate.outputs.matrix }} | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - | |
| name: Generate matrix | |
| id: generate | |
| uses: docker/bake-action/subaction/matrix@82490499d2e5613fcead7e128237ef0b0ea210f7 | |
| with: | |
| files: ./cmd/cli/docker-bake.hcl | |
| target: validate | |
| validate: | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - prepare | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: ${{ fromJson(needs.prepare.outputs.matrix) }} | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - | |
| name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4 | |
| with: | |
| buildkitd-flags: --debug | |
| - | |
| name: Validate | |
| uses: docker/bake-action@82490499d2e5613fcead7e128237ef0b0ea210f7 # v7 | |
| with: | |
| files: ./cmd/cli/docker-bake.hcl | |
| targets: ${{ matrix.target }} |