From 0fa67412cd5c9733bb8ed8e458e0c488240ef9ca Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Fri, 6 Nov 2026 19:50:17 +0100 Subject: [PATCH 1/9] Stage a given commit, called by the bundle, tagged by its identity, the push decided in resolve --- .github/workflows/stage.yml | 268 +++++++++++++++++++++++++++--------- 1 file changed, 202 insertions(+), 66 deletions(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 788f5cf..314d351 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -5,81 +5,80 @@ on: - cron: '0 2 * * 1' workflow_dispatch: inputs: + ref: + description: "The commit to stage, in full (empty: the head of the branch dispatched on)" + default: "" opendaq-ref: description: "openDAQ commit, branch or tag. If empty, uses the opendaq_ref file from the repo." default: "" - + skip-staging-push: + description: "Build only, keep the staging as an artifact of the run" + type: boolean + default: false + # from another repository's run (the bundle): staged as an artifact of that run, never pushed + workflow_call: + inputs: + ref: + description: "The commit to stage, in full (empty: the commit this workflow is called at)" + type: string + default: "" + opendaq-ref: + description: "openDAQ commit, branch or tag. If empty, uses the opendaq_ref file from the repo." + type: string + default: "" jobs: resolve: - name: Resolve the core commit + name: Resolve the commits runs-on: ubuntu-latest outputs: - opendaq-ref: ${{ steps.core.outputs.ref }} + ref: ${{ steps.commits.outputs.ref }} + opendaq-ref: ${{ steps.commits.outputs.opendaq-ref }} + opendaq-channel: ${{ fromJSON(steps.channel.outputs.depends-channels)['openDAQ/openDAQ'] || 'dev' }} + repository: ${{ job.workflow_repository }} channel: ${{ steps.channel.outputs.channel }} - jobs: ${{ steps.stagings.outputs.jobs }} - staging-pull: ${{ steps.stagings.outputs.staging-pull }} - opendaq-artifacts: ${{ steps.stagings.outputs.opendaq-artifacts }} + skip-staging-push: ${{ inputs.skip-staging-push || job.workflow_ref != github.workflow_ref || (github.event_name == 'schedule' && steps.channel.outputs.released != 'true') }} steps: + # this repository, also when called from another one - uses: actions/checkout@v4 + with: + repository: ${{ job.workflow_repository }} + ref: ${{ inputs.ref || job.workflow_sha }} - - uses: openDAQ/openDAQ-CI/.github/actions/resolve-channel@v4 - id: channel - - # the input, or else opendaq_ref; a branch or a tag is resolved to the commit, which is - # what the core staging is found by and what this staging records - - name: Resolve the core commit - id: core - shell: bash - env: - REF: ${{ inputs.opendaq-ref }} - run: | - ref="${REF:-$(cat opendaq_ref)}" - sha="$ref" - if ! [[ "$ref" =~ ^[0-9a-f]{40}$ ]]; then - sha=$(git ls-remote https://github.com/openDAQ/openDAQ "$ref" "$ref^{}" | sort -k2 | tail -1 | cut -f1) - fi - [ -n "$sha" ] || { echo "::error::$ref names no openDAQ commit"; exit 1; } - echo "core: $ref -> $sha" - echo "ref=$sha" >> "$GITHUB_OUTPUT" - - # the jobs to build, and the openDAQ staging each of them builds against - - name: Request the openDAQ stagings - id: stagings + # the commit staged and the core it is built against; a branch or a tag of the core is resolved to the commit, + # which is what the core staging is found by and what this staging records + - name: Resolve the commits + id: commits shell: python3 {0} env: - CHANNEL: ${{ steps.channel.outputs.channel }} - OPENDAQ_REF: ${{ steps.core.outputs.ref }} + OPENDAQ_REF: ${{ inputs.opendaq-ref }} run: | - import json, os + import os, re, subprocess, sys - # job -> the openDAQ staging it builds against, by triplet - opendaq = { - "windows-2022-x86_64-msvs-v143-release": "x86_64-windows-msvc-143-release", - "windows-2022-x86-msvs-v143-release": "x86-windows-msvc-143-release", - "manylinux_2_28-x86_64-ninja-gcc-14-release": "x86_64-manylinux_2_28-gcc-14-release", - "manylinux_2_28-armv8-ninja-gcc-14-release": "armv8-manylinux_2_28-gcc-14-release", - "ubuntu-22.04-x86_64-ninja-gcc-release": "x86_64-linux-gcc-11-release", - "ubuntu-22.04-armv8-ninja-gcc-release": "armv8-linux-gcc-11-release", - "macos-26-x86_64-ninja-appleclang-21-release": "x86_64-macos-apple-clang-21-release", - "macos-26-armv8-ninja-appleclang-21-release": "armv8-macos-apple-clang-21-release", - } - - # each staging, of the resolved commit, as an artifact of its own ... - pull = [{"artifact": f"opendaq-{triplet}", "packages": [{ - "path": f"ghcr.io/openDAQ/{os.environ['CHANNEL']}/staging/opendaq", - "annotations": {"org.opencontainers.image.revision": os.environ["OPENDAQ_REF"], - "com.opendaq.package.triplet": triplet}}]} - for triplet in opendaq.values()] + sha = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, check=True).stdout.strip() - # ... which its job unpacks into staging-deps - artifacts = [{"match-jobs": [job], "artifacts": [{"name": f"opendaq-{triplet}", "dir": "staging-deps"}]} - for job, triplet in opendaq.items()] + # the input, or else opendaq_ref + core = os.environ["OPENDAQ_REF"] or open("opendaq_ref").read().strip() + if not re.fullmatch(r"[0-9a-f]{40}", core): + out = subprocess.run(["git", "ls-remote", "https://github.com/openDAQ/openDAQ", core, f"{core}^{{}}"], + capture_output=True, text=True, check=True).stdout + # the peeled tag (X^{}) sorts last, so a tag gives its commit, not the tag object + core = sorted(out.splitlines(), key=lambda line: line.split("\t")[1])[-1].split("\t")[0] if out else "" + if not core: + sys.exit(f"::error::{os.environ['OPENDAQ_REF'] or 'opendaq_ref'} names no openDAQ commit") with open(os.environ["GITHUB_OUTPUT"], "a") as f: - f.write(f"jobs={json.dumps(list(opendaq))}\n") - f.write(f"staging-pull={json.dumps(pull)}\n") - f.write(f"opendaq-artifacts={json.dumps(artifacts)[1:-1]}\n") # no brackets: it goes inside packages + f.write(f"ref={sha}\n") + f.write(f"opendaq-ref={core}\n") + + # where each lies picks its channel + - uses: openDAQ/openDAQ-CI/.github/actions/resolve-channel@bundle/extract-each-artifact-into-its-dir + id: channel + with: + repository: ${{ job.workflow_repository }} + commit: ${{ steps.commits.outputs.ref }} + depends: '{"openDAQ/openDAQ": "${{ steps.commits.outputs.opendaq-ref }}"}' + stage: needs: resolve @@ -87,17 +86,152 @@ jobs: permissions: contents: read packages: write - uses: openDAQ/openDAQ-CI/.github/workflows/stage.yml@v4 + uses: openDAQ/openDAQ-CI/.github/workflows/stage.yml@bundle/extract-each-artifact-into-its-dir with: + repository: ${{ needs.resolve.outputs.repository }} + ref: ${{ needs.resolve.outputs.ref }} + upload-pattern: asam-cmp-modules-* timeout: '[{"timeout-minutes": 180}]' - include-jobs: ${{ needs.resolve.outputs.jobs }} - staging-pull: ${{ needs.resolve.outputs.staging-pull }} + include-jobs: >- + [ + "windows-2022-x86_64-msvs-v143-release", + "windows-2022-x86-msvs-v143-release", + "manylinux_2_28-x86_64-ninja-gcc-14-release", + "manylinux_2_28-armv8-ninja-gcc-14-release", + "ubuntu-22.04-x86_64-ninja-gcc-release", + "ubuntu-22.04-armv8-ninja-gcc-release", + "macos-26-x86_64-ninja-appleclang-21-release", + "macos-26-armv8-ninja-appleclang-21-release" + ] + staging-pull: >- + [ + { + "artifact": "opendaq-staging-windows-2022-x86_64-msvs-v143-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "x86_64-windows-msvc-143-release" + } + }] + }, + { + "artifact": "opendaq-staging-windows-2022-x86-msvs-v143-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "x86-windows-msvc-143-release" + } + }] + }, + { + "artifact": "opendaq-staging-manylinux_2_28-x86_64-ninja-gcc-14-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "x86_64-manylinux_2_28-gcc-14-release" + } + }] + }, + { + "artifact": "opendaq-staging-manylinux_2_28-armv8-ninja-gcc-14-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "armv8-manylinux_2_28-gcc-14-release" + } + }] + }, + { + "artifact": "opendaq-staging-ubuntu-22.04-x86_64-ninja-gcc-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "x86_64-linux-gcc-11-release" + } + }] + }, + { + "artifact": "opendaq-staging-ubuntu-22.04-armv8-ninja-gcc-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "armv8-linux-gcc-11-release" + } + }] + }, + { + "artifact": "opendaq-staging-macos-26-x86_64-ninja-appleclang-21-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "x86_64-macos-apple-clang-21-release" + } + }] + }, + { + "artifact": "opendaq-staging-macos-26-armv8-ninja-appleclang-21-release", + "packages": [{ + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "annotations": { + "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", + "com.opendaq.package.triplet": "armv8-macos-apple-clang-21-release" + } + }] + } + ] packages: >- [ - ${{ needs.resolve.outputs.opendaq-artifacts }}, - { "match-jobs": ["ubuntu-*"], "apt-install": ["libpcap-dev"] }, - { "match-jobs": ["manylinux*"], "yum-install": ["libpcap-devel"] }, - { "match-jobs": ["windows-*-x86-*"], "run": "vcpkg install openssl:x86-windows; Add-Content -Path $env:GITHUB_PATH -Value C:\\vcpkg\\installed\\x86-windows\\bin -Encoding utf8" } + { + "match-jobs": ["windows-2022-x86_64-msvs-v143-release"], + "artifacts": [{"name": "opendaq-staging-windows-2022-x86_64-msvs-v143-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["windows-2022-x86-msvs-v143-release"], + "artifacts": [{"name": "opendaq-staging-windows-2022-x86-msvs-v143-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["manylinux_2_28-x86_64-ninja-gcc-14-release"], + "artifacts": [{"name": "opendaq-staging-manylinux_2_28-x86_64-ninja-gcc-14-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["manylinux_2_28-armv8-ninja-gcc-14-release"], + "artifacts": [{"name": "opendaq-staging-manylinux_2_28-armv8-ninja-gcc-14-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["ubuntu-22.04-x86_64-ninja-gcc-release"], + "artifacts": [{"name": "opendaq-staging-ubuntu-22.04-x86_64-ninja-gcc-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["ubuntu-22.04-armv8-ninja-gcc-release"], + "artifacts": [{"name": "opendaq-staging-ubuntu-22.04-armv8-ninja-gcc-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["macos-26-x86_64-ninja-appleclang-21-release"], + "artifacts": [{"name": "opendaq-staging-macos-26-x86_64-ninja-appleclang-21-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["macos-26-armv8-ninja-appleclang-21-release"], + "artifacts": [{"name": "opendaq-staging-macos-26-armv8-ninja-appleclang-21-release", "dir": "staging-deps"}] + }, + { + "match-jobs": ["ubuntu-*"], + "apt-install": ["libpcap-dev"] + }, + { + "match-jobs": ["manylinux*"], + "yum-install": ["libpcap-devel"] + }, + { + "match-jobs": ["windows-*-x86-*"], + "run": "vcpkg install openssl:x86-windows; Add-Content -Path $env:GITHUB_PATH -Value C:\\vcpkg\\installed\\x86-windows\\bin -Encoding utf8" + } ] cmake-presets: >- [ @@ -126,11 +260,13 @@ jobs: "stagings": [{"name": "asam-cmp"}] } ] + skip-staging-push: ${{ needs.resolve.outputs.skip-staging-push == 'true' }} staging-push: >- [ { - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.channel }}/staging/asam-cmp-modules", - "artifacts": ["staging-*/asam-cmp"], - "tags": ["latest"] + "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.channel || 'dev' }}/staging/asam-cmp-modules", + "artifacts": ["asam-cmp-modules-staging-*/asam-cmp"], + "idx-identity": ["org.opencontainers.image.revision", "com.opendaq.dependencies.opendaq.revision"], + "pkg-identity": ["org.opencontainers.image.revision", "com.opendaq.dependencies.opendaq.revision", "com.opendaq.package.triplet"] } ] From 3210d9acca617df2a374ed5cb082df4b1947d938 Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Sat, 7 Nov 2026 11:53:28 +0100 Subject: [PATCH 2/9] Take the jobs not built from the caller, and pull no openDAQ staging for them --- .github/workflows/stage.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 314d351..e26996f 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -26,6 +26,10 @@ on: description: "openDAQ commit, branch or tag. If empty, uses the opendaq_ref file from the repo." type: string default: "" + exclude-jobs: + description: "Jobs not built, wildcard patterns, e.g. '[\"manylinux*\"]': their openDAQ stagings not pulled either" + type: string + default: "[]" jobs: resolve: @@ -103,9 +107,11 @@ jobs: "macos-26-x86_64-ninja-appleclang-21-release", "macos-26-armv8-ninja-appleclang-21-release" ] + exclude-jobs: ${{ inputs.exclude-jobs || '[]' }} staging-pull: >- [ { + "match-jobs": ["windows-2022-x86_64-msvs-v143-release"], "artifact": "opendaq-staging-windows-2022-x86_64-msvs-v143-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", @@ -116,6 +122,7 @@ jobs: }] }, { + "match-jobs": ["windows-2022-x86-msvs-v143-release"], "artifact": "opendaq-staging-windows-2022-x86-msvs-v143-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", @@ -126,6 +133,7 @@ jobs: }] }, { + "match-jobs": ["manylinux_2_28-x86_64-ninja-gcc-14-release"], "artifact": "opendaq-staging-manylinux_2_28-x86_64-ninja-gcc-14-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", @@ -136,6 +144,7 @@ jobs: }] }, { + "match-jobs": ["manylinux_2_28-armv8-ninja-gcc-14-release"], "artifact": "opendaq-staging-manylinux_2_28-armv8-ninja-gcc-14-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", @@ -146,6 +155,7 @@ jobs: }] }, { + "match-jobs": ["ubuntu-22.04-x86_64-ninja-gcc-release"], "artifact": "opendaq-staging-ubuntu-22.04-x86_64-ninja-gcc-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", @@ -156,6 +166,7 @@ jobs: }] }, { + "match-jobs": ["ubuntu-22.04-armv8-ninja-gcc-release"], "artifact": "opendaq-staging-ubuntu-22.04-armv8-ninja-gcc-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", @@ -166,6 +177,7 @@ jobs: }] }, { + "match-jobs": ["macos-26-x86_64-ninja-appleclang-21-release"], "artifact": "opendaq-staging-macos-26-x86_64-ninja-appleclang-21-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", @@ -176,6 +188,7 @@ jobs: }] }, { + "match-jobs": ["macos-26-armv8-ninja-appleclang-21-release"], "artifact": "opendaq-staging-macos-26-armv8-ninja-appleclang-21-release", "packages": [{ "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", From 94476536c44e596b41985555c56043eb4852d10f Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Tue, 10 Nov 2026 10:22:30 +0100 Subject: [PATCH 3/9] Take a sha, branch or tag as the commit to stage, as checkout does --- .github/workflows/stage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index e26996f..f51af24 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: inputs: ref: - description: "The commit to stage, in full (empty: the head of the branch dispatched on)" + description: "The commit to stage: a sha, branch or tag (empty: the head of the branch dispatched on)" default: "" opendaq-ref: description: "openDAQ commit, branch or tag. If empty, uses the opendaq_ref file from the repo." @@ -19,7 +19,7 @@ on: workflow_call: inputs: ref: - description: "The commit to stage, in full (empty: the commit this workflow is called at)" + description: "The commit to stage: a sha, branch or tag (empty: the commit this workflow is called at)" type: string default: "" opendaq-ref: From eb39aae26d5fa6aba4b31f5e6e89294e5e652f9e Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Tue, 17 Nov 2026 15:34:24 +0100 Subject: [PATCH 4/9] Remove the stagings' channels --- .github/workflows/check-core-staging.yml | 7 +----- .github/workflows/cleanup.yml | 5 ++-- .github/workflows/stage.yml | 30 ++++++++---------------- 3 files changed, 14 insertions(+), 28 deletions(-) diff --git a/.github/workflows/check-core-staging.yml b/.github/workflows/check-core-staging.yml index 2f5c08b..2b0398a 100644 --- a/.github/workflows/check-core-staging.yml +++ b/.github/workflows/check-core-staging.yml @@ -18,20 +18,15 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: openDAQ/openDAQ-CI/.github/actions/resolve-channel@v4 - id: channel - - name: Read the pinned core ref shell: bash run: echo "OPENDAQ_REF=$(cat opendaq_ref)" >> "$GITHUB_ENV" - uses: openDAQ/openDAQ-CI/.github/actions/staging-check@v4 - env: - CHANNEL: ${{ steps.channel.outputs.channel }} with: packages: >- [ { "packages": [ - { "path": "ghcr.io/openDAQ/$CHANNEL/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "$OPENDAQ_REF" } } + { "path": "ghcr.io/openDAQ/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "$OPENDAQ_REF" } } ] } ] diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 3c273e2..32c1d1f 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -15,10 +15,11 @@ jobs: name: Stagings permissions: packages: write - uses: openDAQ/openDAQ-CI/.github/workflows/staging-cleanup.yml@v4 + uses: openDAQ/openDAQ-CI/.github/workflows/staging-cleanup.yml@bundle/extract-each-artifact-into-its-dir with: dry-run: ${{inputs.dry-run || false}} staging-retentions: >- [ - {"path": "ghcr.io/openDAQ/dev/staging/asam-cmp-modules", "retentions": {"days": 30}} + {"path": "ghcr.io/openDAQ/staging/asam-cmp-modules", "retention": {"days": 30}}, + {"path": "ghcr.io/openDAQ/dev/staging/asam-cmp-modules", "retention": {"days": 30}} ] \ No newline at end of file diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index f51af24..b5e2f3e 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -38,10 +38,8 @@ jobs: outputs: ref: ${{ steps.commits.outputs.ref }} opendaq-ref: ${{ steps.commits.outputs.opendaq-ref }} - opendaq-channel: ${{ fromJSON(steps.channel.outputs.depends-channels)['openDAQ/openDAQ'] || 'dev' }} repository: ${{ job.workflow_repository }} - channel: ${{ steps.channel.outputs.channel }} - skip-staging-push: ${{ inputs.skip-staging-push || job.workflow_ref != github.workflow_ref || (github.event_name == 'schedule' && steps.channel.outputs.released != 'true') }} + skip-staging-push: ${{ inputs.skip-staging-push || job.workflow_ref != github.workflow_ref }} steps: # this repository, also when called from another one - uses: actions/checkout@v4 @@ -75,14 +73,6 @@ jobs: f.write(f"ref={sha}\n") f.write(f"opendaq-ref={core}\n") - # where each lies picks its channel - - uses: openDAQ/openDAQ-CI/.github/actions/resolve-channel@bundle/extract-each-artifact-into-its-dir - id: channel - with: - repository: ${{ job.workflow_repository }} - commit: ${{ steps.commits.outputs.ref }} - depends: '{"openDAQ/openDAQ": "${{ steps.commits.outputs.opendaq-ref }}"}' - stage: needs: resolve @@ -114,7 +104,7 @@ jobs: "match-jobs": ["windows-2022-x86_64-msvs-v143-release"], "artifact": "opendaq-staging-windows-2022-x86_64-msvs-v143-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "x86_64-windows-msvc-143-release" @@ -125,7 +115,7 @@ jobs: "match-jobs": ["windows-2022-x86-msvs-v143-release"], "artifact": "opendaq-staging-windows-2022-x86-msvs-v143-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "x86-windows-msvc-143-release" @@ -136,7 +126,7 @@ jobs: "match-jobs": ["manylinux_2_28-x86_64-ninja-gcc-14-release"], "artifact": "opendaq-staging-manylinux_2_28-x86_64-ninja-gcc-14-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "x86_64-manylinux_2_28-gcc-14-release" @@ -147,7 +137,7 @@ jobs: "match-jobs": ["manylinux_2_28-armv8-ninja-gcc-14-release"], "artifact": "opendaq-staging-manylinux_2_28-armv8-ninja-gcc-14-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "armv8-manylinux_2_28-gcc-14-release" @@ -158,7 +148,7 @@ jobs: "match-jobs": ["ubuntu-22.04-x86_64-ninja-gcc-release"], "artifact": "opendaq-staging-ubuntu-22.04-x86_64-ninja-gcc-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "x86_64-linux-gcc-11-release" @@ -169,7 +159,7 @@ jobs: "match-jobs": ["ubuntu-22.04-armv8-ninja-gcc-release"], "artifact": "opendaq-staging-ubuntu-22.04-armv8-ninja-gcc-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "armv8-linux-gcc-11-release" @@ -180,7 +170,7 @@ jobs: "match-jobs": ["macos-26-x86_64-ninja-appleclang-21-release"], "artifact": "opendaq-staging-macos-26-x86_64-ninja-appleclang-21-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "x86_64-macos-apple-clang-21-release" @@ -191,7 +181,7 @@ jobs: "match-jobs": ["macos-26-armv8-ninja-appleclang-21-release"], "artifact": "opendaq-staging-macos-26-armv8-ninja-appleclang-21-release", "packages": [{ - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.opendaq-channel }}/staging/opendaq", + "path": "ghcr.io/${{ github.repository_owner }}/staging/opendaq", "annotations": { "org.opencontainers.image.revision": "${{ needs.resolve.outputs.opendaq-ref }}", "com.opendaq.package.triplet": "armv8-macos-apple-clang-21-release" @@ -277,7 +267,7 @@ jobs: staging-push: >- [ { - "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.channel || 'dev' }}/staging/asam-cmp-modules", + "path": "ghcr.io/${{ github.repository_owner }}/staging/asam-cmp-modules", "artifacts": ["asam-cmp-modules-staging-*/asam-cmp"], "idx-identity": ["org.opencontainers.image.revision", "com.opendaq.dependencies.opendaq.revision"], "pkg-identity": ["org.opencontainers.image.revision", "com.opendaq.dependencies.opendaq.revision", "com.opendaq.package.triplet"] From f8178e60e5cf9598f5307fde515badbd873bcfa8 Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Thu, 19 Nov 2026 18:54:13 +0100 Subject: [PATCH 5/9] Take openDAQ-CI from v4.1.0 --- .github/workflows/check-core-staging.yml | 2 +- .github/workflows/ci-downstream.yml | 2 +- .github/workflows/cleanup.yml | 2 +- .github/workflows/stage.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-core-staging.yml b/.github/workflows/check-core-staging.yml index 2b0398a..b8e37fc 100644 --- a/.github/workflows/check-core-staging.yml +++ b/.github/workflows/check-core-staging.yml @@ -22,7 +22,7 @@ jobs: shell: bash run: echo "OPENDAQ_REF=$(cat opendaq_ref)" >> "$GITHUB_ENV" - - uses: openDAQ/openDAQ-CI/.github/actions/staging-check@v4 + - uses: openDAQ/openDAQ-CI/.github/actions/staging-check@v4.1.0 with: packages: >- [ diff --git a/.github/workflows/ci-downstream.yml b/.github/workflows/ci-downstream.yml index 1023a23..8b7236e 100644 --- a/.github/workflows/ci-downstream.yml +++ b/.github/workflows/ci-downstream.yml @@ -12,7 +12,7 @@ on: jobs: call-opendaq-reusable: name: ASAM CMP - uses: openDAQ/openDAQ-CI/.github/workflows/reusable.yml@v4 + uses: openDAQ/openDAQ-CI/.github/workflows/reusable.yml@v4.1.0 with: opendaq-ref: ${{ github.event.inputs.opendaq-ref || '' }} include-jobs: > diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 32c1d1f..9498c23 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -15,7 +15,7 @@ jobs: name: Stagings permissions: packages: write - uses: openDAQ/openDAQ-CI/.github/workflows/staging-cleanup.yml@bundle/extract-each-artifact-into-its-dir + uses: openDAQ/openDAQ-CI/.github/workflows/staging-cleanup.yml@v4.1.0 with: dry-run: ${{inputs.dry-run || false}} staging-retentions: >- diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index b5e2f3e..1297674 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -80,7 +80,7 @@ jobs: permissions: contents: read packages: write - uses: openDAQ/openDAQ-CI/.github/workflows/stage.yml@bundle/extract-each-artifact-into-its-dir + uses: openDAQ/openDAQ-CI/.github/workflows/stage.yml@v4.1.0 with: repository: ${{ needs.resolve.outputs.repository }} ref: ${{ needs.resolve.outputs.ref }} From 5afedf92f965c25994425fb3a330e4e5cf99e76f Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Fri, 20 Nov 2026 09:58:23 +0100 Subject: [PATCH 6/9] Take openDAQ-CI from v4 --- .github/workflows/check-core-staging.yml | 2 +- .github/workflows/ci-downstream.yml | 2 +- .github/workflows/cleanup.yml | 2 +- .github/workflows/stage.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-core-staging.yml b/.github/workflows/check-core-staging.yml index b8e37fc..2b0398a 100644 --- a/.github/workflows/check-core-staging.yml +++ b/.github/workflows/check-core-staging.yml @@ -22,7 +22,7 @@ jobs: shell: bash run: echo "OPENDAQ_REF=$(cat opendaq_ref)" >> "$GITHUB_ENV" - - uses: openDAQ/openDAQ-CI/.github/actions/staging-check@v4.1.0 + - uses: openDAQ/openDAQ-CI/.github/actions/staging-check@v4 with: packages: >- [ diff --git a/.github/workflows/ci-downstream.yml b/.github/workflows/ci-downstream.yml index 8b7236e..1023a23 100644 --- a/.github/workflows/ci-downstream.yml +++ b/.github/workflows/ci-downstream.yml @@ -12,7 +12,7 @@ on: jobs: call-opendaq-reusable: name: ASAM CMP - uses: openDAQ/openDAQ-CI/.github/workflows/reusable.yml@v4.1.0 + uses: openDAQ/openDAQ-CI/.github/workflows/reusable.yml@v4 with: opendaq-ref: ${{ github.event.inputs.opendaq-ref || '' }} include-jobs: > diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 9498c23..c9cabe8 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -15,7 +15,7 @@ jobs: name: Stagings permissions: packages: write - uses: openDAQ/openDAQ-CI/.github/workflows/staging-cleanup.yml@v4.1.0 + uses: openDAQ/openDAQ-CI/.github/workflows/staging-cleanup.yml@v4 with: dry-run: ${{inputs.dry-run || false}} staging-retentions: >- diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 1297674..a11f674 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -80,7 +80,7 @@ jobs: permissions: contents: read packages: write - uses: openDAQ/openDAQ-CI/.github/workflows/stage.yml@v4.1.0 + uses: openDAQ/openDAQ-CI/.github/workflows/stage.yml@v4 with: repository: ${{ needs.resolve.outputs.repository }} ref: ${{ needs.resolve.outputs.ref }} From 727fe52cec6cb529dd5ce5592930cb0381f6324d Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Fri, 20 Nov 2026 16:25:32 +0100 Subject: [PATCH 7/9] Stage against the core's main on schedule, a few hours after the core's --- .github/workflows/stage.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index a11f674..f0fdee5 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -2,14 +2,15 @@ name: Build ASAM CMP module stagings on: schedule: - - cron: '0 2 * * 1' + # a few hours after the core's (02:00), so the staging of the core's main is published by then + - cron: '0 5 * * 1' workflow_dispatch: inputs: ref: description: "The commit to stage: a sha, branch or tag (empty: the head of the branch dispatched on)" default: "" opendaq-ref: - description: "openDAQ commit, branch or tag. If empty, uses the opendaq_ref file from the repo." + description: "openDAQ commit, branch or tag. If empty, uses the opendaq_ref file from the repo (on schedule: main)." default: "" skip-staging-push: description: "Build only, keep the staging as an artifact of the run" @@ -54,13 +55,14 @@ jobs: shell: python3 {0} env: OPENDAQ_REF: ${{ inputs.opendaq-ref }} + EVENT: ${{ github.event_name }} run: | import os, re, subprocess, sys sha = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True, check=True).stdout.strip() - # the input, or else opendaq_ref - core = os.environ["OPENDAQ_REF"] or open("opendaq_ref").read().strip() + # the input, or else the core's main on schedule, opendaq_ref otherwise + core = os.environ["OPENDAQ_REF"] or ("refs/heads/main" if os.environ["EVENT"] == "schedule" else open("opendaq_ref").read().strip()) if not re.fullmatch(r"[0-9a-f]{40}", core): out = subprocess.run(["git", "ls-remote", "https://github.com/openDAQ/openDAQ", core, f"{core}^{{}}"], capture_output=True, text=True, check=True).stdout From 149464bc9e0be001e76f01275599fd627aa10811 Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Wed, 25 Nov 2026 20:23:02 +0100 Subject: [PATCH 8/9] Take opendaq-cmake-utils v1.1.4, Boost patched for CMake 4.5 --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index b637287..bb4a6f1 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -8,7 +8,7 @@ include(FetchContent) FetchContent_Declare( opendaq-cmake-utils GIT_REPOSITORY https://github.com/openDAQ/opendaq-cmake-utils.git - GIT_TAG v1.1.3 + GIT_TAG v1.1.4 GIT_PROGRESS ON ) FetchContent_MakeAvailable(opendaq-cmake-utils) \ No newline at end of file From 37fd34420a76164178a51ce66288d6632a0e8924 Mon Sep 17 00:00:00 2001 From: Aliaksandr Adziareika Date: Wed, 25 Nov 2026 20:23:02 +0100 Subject: [PATCH 9/9] Build against the core 84fc1b2 --- opendaq_ref | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendaq_ref b/opendaq_ref index 2de57d9..310c19c 100644 --- a/opendaq_ref +++ b/opendaq_ref @@ -1 +1 @@ -737a0e22a6cdfc56aec8a88a1dd4cc58379f0e03 \ No newline at end of file +84fc1b252c2738b1a64bb5a5eaf7d432653ece93 \ No newline at end of file