-
Notifications
You must be signed in to change notification settings - Fork 0
Publish the OPC UA module stagings #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alexadereyko
wants to merge
11
commits into
main
Choose a base branch
from
jira/TBBAS-3304-stage-opcua
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d95d861
Publish the OPC UA module stagings
alexadereyko 22d861e
Pack only the module runtime
alexadereyko c3020db
Pull the core staging opendaq_ref names
alexadereyko 254373a
Pin core to a staged commit
alexadereyko dc45497
Publish the stagings weekly, not on every merge
alexadereyko af94c36
Trigger on push again
alexadereyko a68fd27
Stop staging on pull requests
alexadereyko 8783fbe
Pin core to a commit that is on a branch
alexadereyko 88e054a
Bump core to the current staging
alexadereyko d0bebbb
Resolve the channel with the shared action
alexadereyko a84a147
Bump core to the current staging
alexadereyko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| name: Build OPC UA module stagings | ||
|
|
||
| on: | ||
| push: | ||
| schedule: | ||
| - cron: '0 2 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| resolve: | ||
| name: Resolve the core commit | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| core-ref: ${{ steps.core.outputs.ref }} | ||
| channel: ${{ steps.channel.outputs.channel }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: openDAQ/openDAQ-CI/.github/actions/resolve-channel@jira/TBBAS-3477-staging-check | ||
| id: channel | ||
|
|
||
| - name: Read the pinned core ref | ||
| id: core | ||
| shell: bash | ||
| run: echo "ref=$(cat opendaq_ref)" >> "$GITHUB_OUTPUT" | ||
|
|
||
| stage: | ||
| needs: resolve | ||
| name: OpcUaModules | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| uses: openDAQ/openDAQ-CI/.github/workflows/stage.yml@jira/TBBAS-3439-multi-staging | ||
| with: | ||
| timeout: '[{"timeout-minutes": 180}]' | ||
| staging-pull: >- | ||
| [ | ||
| { "artifact": "core-windows-2022-x86_64-msvs-v143-release", "packages": [{ "path": "ghcr.io/openDAQ/test/staging/opendaq", "tag": "${{ needs.resolve.outputs.core-ref }}", "annotations": { "com.opendaq.custom.platform": "windows", "com.opendaq.settings.arch": "x86_64" } }] }, | ||
| { "artifact": "core-windows-2022-x86-msvs-v143-release", "packages": [{ "path": "ghcr.io/openDAQ/test/staging/opendaq", "tag": "${{ needs.resolve.outputs.core-ref }}", "annotations": { "com.opendaq.custom.platform": "windows", "com.opendaq.settings.arch": "x86" } }] }, | ||
| { "artifact": "core-manylinux_2_28-x86_64-ninja-gcc-release", "packages": [{ "path": "ghcr.io/openDAQ/test/staging/opendaq", "tag": "${{ needs.resolve.outputs.core-ref }}", "annotations": { "com.opendaq.custom.platform": "manylinux_2_28", "com.opendaq.settings.arch": "x86_64" } }] }, | ||
| { "artifact": "core-ubuntu-22.04-x86_64-ninja-gcc-release", "packages": [{ "path": "ghcr.io/openDAQ/test/staging/opendaq", "tag": "${{ needs.resolve.outputs.core-ref }}", "annotations": { "com.opendaq.custom.platform": "linux", "com.opendaq.settings.arch": "x86_64" } }] }, | ||
| { "artifact": "core-ubuntu-22.04-armv8-ninja-gcc-release", "packages": [{ "path": "ghcr.io/openDAQ/test/staging/opendaq", "tag": "${{ needs.resolve.outputs.core-ref }}", "annotations": { "com.opendaq.custom.platform": "linux", "com.opendaq.settings.arch": "armv8" } }] }, | ||
| { "artifact": "core-macos-26-x86_64-ninja-appleclang-release","packages": [{ "path": "ghcr.io/openDAQ/test/staging/opendaq", "tag": "${{ needs.resolve.outputs.core-ref }}", "annotations": { "com.opendaq.custom.platform": "macos", "com.opendaq.settings.arch": "x86_64" } }] }, | ||
| { "artifact": "core-macos-26-armv8-ninja-appleclang-release", "packages": [{ "path": "ghcr.io/openDAQ/test/staging/opendaq", "tag": "${{ needs.resolve.outputs.core-ref }}", "annotations": { "com.opendaq.custom.platform": "macos", "com.opendaq.settings.arch": "armv8" } }] } | ||
| ] | ||
| include-jobs: >- | ||
| [ | ||
| "windows-2022-x86_64-msvs-v143-release", | ||
| "windows-2022-x86-msvs-v143-release", | ||
| "manylinux_2_28-x86_64-ninja-gcc-release", | ||
| "ubuntu-22.04-x86_64-ninja-gcc-release", | ||
| "ubuntu-22.04-armv8-ninja-gcc-release", | ||
| "macos-26-x86_64-ninja-appleclang-release", | ||
| "macos-26-armv8-ninja-appleclang-release" | ||
| ] | ||
| packages: >- | ||
| [ | ||
| { "match-jobs": ["windows-2022-x86_64-msvs-v143-release"], "artifacts": [{ "name": "core-windows-2022-x86_64-msvs-v143-release", "dir": "staging-deps" }] }, | ||
| { "match-jobs": ["windows-2022-x86-msvs-v143-release"], "artifacts": [{ "name": "core-windows-2022-x86-msvs-v143-release", "dir": "staging-deps" }] }, | ||
| { "match-jobs": ["manylinux_2_28-x86_64-ninja-gcc-release"], "artifacts": [{ "name": "core-manylinux_2_28-x86_64-ninja-gcc-release", "dir": "staging-deps" }] }, | ||
| { "match-jobs": ["ubuntu-22.04-x86_64-ninja-gcc-release"], "artifacts": [{ "name": "core-ubuntu-22.04-x86_64-ninja-gcc-release", "dir": "staging-deps" }] }, | ||
| { "match-jobs": ["ubuntu-22.04-armv8-ninja-gcc-release"], "artifacts": [{ "name": "core-ubuntu-22.04-armv8-ninja-gcc-release", "dir": "staging-deps" }] }, | ||
| { "match-jobs": ["macos-26-x86_64-ninja-appleclang-release"],"artifacts": [{ "name": "core-macos-26-x86_64-ninja-appleclang-release", "dir": "staging-deps" }] }, | ||
| { "match-jobs": ["macos-26-armv8-ninja-appleclang-release"], "artifacts": [{ "name": "core-macos-26-armv8-ninja-appleclang-release", "dir": "staging-deps" }] } | ||
| ] | ||
| cmake-presets: >- | ||
| [ | ||
| { | ||
| "match-jobs": ["*"], | ||
| "configure-preset": "stage", | ||
| "cache-variables": | ||
| { | ||
| "CMAKE_PREFIX_PATH": "${sourceDir}/staging-deps;${sourceDir}/staging-deps/opt/opendaq" | ||
| } | ||
| }, | ||
| { | ||
| "match-jobs": ["macos-*"], | ||
| "cache-variables": {"CMAKE_OSX_DEPLOYMENT_TARGET": "10.15"} | ||
| } | ||
| ] | ||
| cpack-presets: >- | ||
| [ | ||
| { | ||
| "match-jobs": ["*"], | ||
| "stagings": [{"name": "opcua"}] | ||
| } | ||
| ] | ||
| staging-push: >- | ||
| [ | ||
| { | ||
| "path": "ghcr.io/${{ github.repository_owner }}/${{ needs.resolve.outputs.channel }}/staging/opcua-modules", | ||
| "artifacts": ["staging-*/opcua"], | ||
| "tags": ["latest"] | ||
| } | ||
| ] |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| ## | ||
| ## CPack configuration for the OPC UA modules | ||
| ## | ||
|
|
||
| set(CPACK_PACKAGE_NAME ${PROJECT_NAME}) | ||
| set(CPACK_PACKAGE_VENDOR "openDAQ d.o.o.") | ||
| set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "openDAQ OPC UA client and server modules") | ||
| set(CPACK_PACKAGE_HOMEPAGE_URL "https://opendaq.io/") | ||
| set(CPACK_PACKAGE_CONTACT "info@opendaq.io") | ||
| set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") | ||
|
|
||
| set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) | ||
| set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) | ||
| set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) | ||
|
|
||
| set(CPACK_VERBATIM_VARIABLES ON) | ||
| set(CPACK_THREADS 0) | ||
|
|
||
| set(CPACK_GENERATOR TGZ) | ||
| set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE) | ||
| set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) | ||
|
|
||
| if(NOT CPACK_PACKAGE_DIRECTORY) | ||
| set(CPACK_PACKAGE_DIRECTORY "${CMAKE_SOURCE_DIR}/build/_packages") | ||
| endif() | ||
|
|
||
| ## | ||
| ## Package filename and staging metadata | ||
| ## | ||
| ## Format: opcua-modules-<version>[-<sha>]-<arch>-<os>-<compiler>-<compiler-version>-<build-type> | ||
| ## Composed by opendaq-cmake-utils, the same way core names its packages. | ||
| ## | ||
|
|
||
| set(CPACK_OPENDAQ_META_PACKAGE_NAME "opcua-modules") | ||
|
|
||
| execute_process(COMMAND git -C "${CMAKE_CURRENT_SOURCE_DIR}" rev-parse --short=7 HEAD | ||
| OUTPUT_VARIABLE _PACKING_SHORT_SHA | ||
| OUTPUT_STRIP_TRAILING_WHITESPACE | ||
| ERROR_QUIET | ||
| ) | ||
| if(_PACKING_SHORT_SHA) | ||
| set(CPACK_OPENDAQ_META_PACKAGE_VERSION_SUFFIX "-${_PACKING_SHORT_SHA}") | ||
| endif() | ||
|
|
||
| opendaq_detect_settings() | ||
| opendaq_detect_package() | ||
| opendaq_compose_package_triplet() | ||
| opendaq_compose_package_file_name() | ||
|
|
||
| # Let each cpack run name the package it produces (-D CPACK_OPENDAQ_META_PACKAGE_NAME=...). | ||
| set(CPACK_PROJECT_CONFIG_FILE "${CPACK_OPENDAQ_PROJECT_CONFIG}") | ||
|
|
||
| include(CPack) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| e6f13d80fa7c64697e5549fc1d897b03ad813415 | ||
| 64ab85c594f0ad5fef169c84ae24bda251540f38 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here again a note on adjusting the version to the correct one.