2f974da551
Update all of our GitHub Actions to the latest versions. Notably, the update to actions/cache gives support for the 10GB GitHub Actions cache, and the updates for the other first-party actions are required for future M1 runner support.
28 lines
555 B
YAML
28 lines
555 B
YAML
name: Clang Format Check
|
|
|
|
on:
|
|
push:
|
|
paths-ignore: ['**.md']
|
|
branches-ignore: [master]
|
|
pull_request:
|
|
paths-ignore: ['**.md']
|
|
branches-ignore: [master]
|
|
|
|
jobs:
|
|
clang-format-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'recursive'
|
|
|
|
- name: Install clang format
|
|
run: |
|
|
sudo apt-get install -y clang-format-12
|
|
|
|
- name: 'Run clang-format'
|
|
run: |
|
|
./CI/check-format.sh
|
|
./CI/check-changes.sh
|