Fix XML message export and gate legacy EML option behind a setting #667
Workflow file for this run
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: Clang-format | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-formatting: | |
| name: Formatting Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Install clang-format | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-format-17 | |
| - name: Run clang-format style check | |
| run: | | |
| # Find all C/C++ files, excluding mapistub directory | |
| files=$(find . -type f \( -name "*.cpp" -o -name "*.h" -o -name "*.c" \) \ | |
| ! -path "./mapistub/*" ! -path "./.git/*" | sort) | |
| if [ -z "$files" ]; then | |
| echo "No C/C++ files found" | |
| exit 0 | |
| fi | |
| # Check formatting (--dry-run -Werror exits non-zero if changes needed) | |
| echo "$files" | xargs clang-format-17 --verbose --dry-run -Werror --style=file --fallback-style=Microsoft |