Standardize MAD to use create_entity.h (#1612) #3792
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: Format code | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '*/*.c' | |
- '*/*.h' | |
- '**/*.c' | |
- '**/*.h' | |
- '**/*.py' | |
- 'config/symbols.*.txt' | |
workflow_dispatch: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install requirements | |
run: sudo apt-get install clang-format | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install black | |
run: pip install black pyyaml mapfile-parser==2.1.4 | |
- name: Clone main repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: false | |
- name: Format code | |
run: make format | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Format code |