feat: changed datacrumbs generation based logic to dynamic probe attach. #526
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: Check code formatting | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ develop, stage-in ] | |
| workflow_dispatch: | |
| jobs: | |
| cpp-format-check: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: datacrumbs | |
| - name: Resolve compatible datacrumbs-utils ref | |
| run: | | |
| set -euo pipefail | |
| cmake -DOUTPUT="${RUNNER_TEMP}/datacrumbs-utils-compatibility.env" \ | |
| -P "${GITHUB_WORKSPACE}/datacrumbs/cmake/write_datacrumbs_utils_compatibility_env.cmake" | |
| cat "${RUNNER_TEMP}/datacrumbs-utils-compatibility.env" >> "${GITHUB_ENV}" | |
| - name: Checkout datacrumbs-utils | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ${{ env.DATACRUMBS_UTILS_COMPATIBLE_REPOSITORY }} | |
| ref: ${{ env.DATACRUMBS_UTILS_COMPATIBLE_REF }} | |
| fetch-depth: 1 | |
| path: datacrumbs-utils | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| - name: Install clang-format | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| clang-format-19 | |
| - name: Install shfmt | |
| run: | | |
| go install mvdan.cc/sh/v3/cmd/shfmt@latest | |
| echo "$HOME/go/bin" >> $GITHUB_PATH | |
| - name: Install cmake-format | |
| run: | | |
| sudo apt-get install -y python3-pip | |
| sudo pip3 install cmakelang PyYAML | |
| - name: Test formatting | |
| run: | | |
| ./datacrumbs-utils/scripts/formatting/check-formatting.sh /usr/bin/clang-format-19 ./datacrumbs |