mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 15:48:09 -05:00
ccb6223d70
* mxdirectdraw: no need to explicitly add a terminating '\0' in C * mxstopwatch must include LIMITS.H for ULONG_MAX * Add Config app * 88.78% * style fixes * Test more CONFIG things * Add a few assertions on MFC classes * reformat * actionSSSSSSSSSSSSSSS * actions again * decomplint needed a shebang * Fix annotations of Message Map entries * ci: We're building CONFIG.EXE, not CONFIG.DLL * remove ninja.exe * Fix CAboutDialog::GetMessageMap annotation * format reloaded * Fix global CConfigApp object annotation * trigger worflows * ci: request at least python 3 * oops :) * curl CONFIGPROGRESS-OLD.TXT will fail * Forget about actions/setup-python (for now) * Annotation fixes * Config tweaks and MxDirect3d annotations * It's important to compare against the correct file * Introduce common CDialog parent for CAboutDialog and CMainDialog * format * Remove CSerializer --------- Co-authored-by: disinvite <disinvite@users.noreply.github.com>
37 lines
779 B
YAML
37 lines
779 B
YAML
name: Format
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
clang-format:
|
|
name: 'C++'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run clang-format
|
|
run: |
|
|
find CONFIG LEGO1 ISLE -iname '*.h' -o -iname '*.cpp' | xargs \
|
|
pipx run "clang-format>=17,<18" \
|
|
--style=file \
|
|
-i
|
|
git diff --exit-code
|
|
|
|
python-format:
|
|
name: 'Python'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install python libraries
|
|
shell: bash
|
|
run: |
|
|
pip install black==23.* pylint==3.* pytest==7.* -r tools/requirements.txt
|
|
|
|
- name: Run pylint and black
|
|
shell: bash
|
|
run: |
|
|
pylint tools --ignore=build,ncc
|
|
black --check tools --exclude=ncc
|