Check OGM-Common Module Build #40
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
| # Check build of OpenKNX OFM with Reference OAM (merging/building of OpenKNX knxprod + build of full releases) | |
| # SPDX-License-Identifier: AGPL-3.0-only | |
| # Copyright (C) 2024-2025 Cornelius Koepp | |
| name: BASE-check | |
| run-name: Check OGM-Common Module Build | |
| on: | |
| pull_request: | |
| # only run for PRs whose base (target) branch is v1dev or v1 | |
| branches: | |
| - v1dev | |
| - v1 | |
| # limit to the most relevant PR events | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| # allow manual runs via "Actions → Run workflow" and provide example inputs | |
| workflow_dispatch: | |
| inputs: | |
| oam: | |
| description: 'OAM to build (e.g. OAM-RaumController)' | |
| required: false | |
| default: 'OAM-RaumController' | |
| ref: | |
| description: 'Reference branch to use (e.g. v1 or v1dev)' | |
| required: false | |
| default: 'v1' | |
| KNXPROD_PREFIX: | |
| description: 'KNXPROD (XML-file) prefix' | |
| required: false | |
| default: 'RaumController' | |
| target: | |
| description: 'Build target (e.g. Release, DFA16-Release, Big)' | |
| required: false | |
| default: 'Release' | |
| jobs: | |
| # This job runs for pull_request events (matrix based) | |
| check: | |
| if: ${{ github.event_name != 'workflow_dispatch' }} | |
| name: Check '${{ matrix.target }}' in '${{ matrix.oam }}' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - oam: OAM-RaumController | |
| ref: v1 | |
| prefix: RaumController | |
| target: Release | |
| - oam: OAM-StateEngine | |
| # knxprod_xml: StateEngine-DFA16-Release | |
| ref: v1 | |
| prefix: StateEngine | |
| target: DFA16-Release | |
| uses: ./.github/workflows/openknx-ofm-check.yml | |
| with: | |
| oam: ${{ matrix.oam }} | |
| ref: ${{ matrix.ref }} | |
| KNXPROD_PREFIX: ${{ matrix.prefix }} | |
| target: ${{ matrix.target }} | |
| # restore_branch: ${{ matrix.restore_branch }} | |
| # This job runs only when the workflow is started manually (workflow_dispatch). | |
| # It uses the input fields above so you can run one specific combination on demand. | |
| manual: | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| name: Manual check for '${{ github.event.inputs.oam }}' in '${{ github.event.inputs.ref }}' | |
| uses: ./.github/workflows/openknx-ofm-check.yml | |
| with: | |
| oam: ${{ github.event.inputs.oam }} | |
| ref: ${{ github.event.inputs.ref }} | |
| KNXPROD_PREFIX: ${{ github.event.inputs.KNXPROD_PREFIX }} | |
| target: ${{ github.event.inputs.target }} |