DAOS-15739 engine: Add single-engine, multi-socket support #9588
Workflow file for this run
This file contains 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: clang-format | |
# Report style formatting changes. | |
# Run git-clang-format on the contents of the PR against the target commit and display a diff of | |
# any recommended changes. Fail the job if any are recommended. | |
# | |
# Future work would be to have a way to apply these automatically which would require making and | |
# pushing a new git commit so should be optional. | |
# | |
# Runs in a fedora docker container to get a recent clang-format version. | |
# | |
# This checks out the tree with the default settings - a merge commit of the PR with the target | |
# branch, then it applies git-clang-format which only works against branches, not where branches | |
# diverge, and then it removes any changes to auto-generated files. The result should be something | |
# that can be applied to the PR however it may not apply cleanly if there are merge issues with | |
# master - although in this case the PR should be merged with the target before landing in any case. | |
on: | |
pull_request: | |
jobs: | |
pylint: | |
name: Clang Format | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Pull via git | |
run: git fetch origin ${{ github.event.pull_request.base.sha }} | |
- name: Run check in docker | |
uses: ./.github/actions/clang-format | |
with: | |
target: ${{ github.event.pull_request.base.sha }} | |
- name: Export changes | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: format-patch-for-pr-${{ github.event.pull_request.number }} | |
path: auto-format-changes.diff |