superseding changes made in pr #1394 on request of @jonesmz extracted ubuntu build dependencies into a composite action for maintainability reasons
31 lines
675 B
YAML
31 lines
675 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ $default-branch ]
|
|
pull_request:
|
|
types: [ opened, reopened, synchronize ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: install dependencies
|
|
uses: ./.github/workflows/actions/ubuntu-build-deps
|
|
with:
|
|
SUDO: true
|
|
- name: install clang-format-15
|
|
run: sudo apt install -y clang-format-15
|
|
- name: configure
|
|
run: ./configure
|
|
- name: lint
|
|
run: |
|
|
if which clang-format-15 2>&1 >/dev/null
|
|
then
|
|
sudo cp $(which clang-format-15) $(which clang-format)
|
|
fi
|
|
clang-format --version
|
|
make lint
|