* format cmake files * update format.sh * fix linker flags for emscripten * update readme * use gersemi * actual format * should be public instead of interface * make test work without download * simplification * format
34 lines
718 B
YAML
34 lines
718 B
YAML
name: Check code formatting
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
check_format:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DoozyX/clang-format-lint-action@v0.18
|
|
with:
|
|
source: '.'
|
|
exclude: '*/third_party'
|
|
extensions: 'h,cpp,js,ts,html'
|
|
clangFormatVersion: 18
|
|
- uses: psf/black@stable
|
|
with:
|
|
options: "--check --verbose"
|
|
src: "./bindings/python/examples"
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
cache: 'pip'
|
|
- name: "gersemi cmake check"
|
|
run: |
|
|
pip3 install gersemi
|
|
./scripts/gersemi-check.sh
|
|
|