Check OGM-Common Module Build #54
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-2026 Cornelius Koepp | ||
| name: BASE-check | ||
| run-name: Check OGM-Common Module Build | ||
| on: | ||
| push: | ||
| branches: | ||
| - test/actions | ||
| - v1dev | ||
| - v1 | ||
| 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' | ||
| restore_branch: | ||
| description: 'Build with latest branch, not exact commit' | ||
| required: false | ||
| default: false | ||
| 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: openknx/actions/.github/workflows/openknx-ofm-check.yml@v0 | ||
| with: | ||
| # use repo vars for ofm and ofm_ref | ||
| ofm_prefix: BASE | ||
| oam: ${{ matrix.oam }} | ||
| oam_ref: ${{ matrix.ref }} | ||
|
Check failure on line 75 in .github/workflows/OGM-Common.yml
|
||
| KNXPROD_PREFIX: ${{ matrix.prefix }} | ||
| target: ${{ matrix.target }} | ||
| # restore_branch: ${{ matrix.restore_branch }} | ||
| restore_branch: false | ||
| # 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: openknx/actions/.github/workflows/openknx-ofm-check.yml@v0 | ||
| with: | ||
| oam: ${{ github.event.inputs.oam }} | ||
| # TODO FIXME needs support for oam_ref: ${{ github.event.inputs.ref }} | ||
| KNXPROD_PREFIX: ${{ github.event.inputs.KNXPROD_PREFIX }} | ||
| target: ${{ github.event.inputs.target }} | ||
| # TODO check support for: restore_branch: ${{ github.event.inputs.restore_branch == 'true' }} | ||