Microsoft Visual Studio 2019 ships with LLVM/Clang 12 as of Visual Studio 2019 16.11.0 (August 10, 2021). LLVM/Clang 12 is available on all platforms. This change should make it easier to have clang-format "just work" on dev systems and be consistent across platforms without having to use an outdated version.
22 lines
422 B
YAML
22 lines
422 B
YAML
name: Clang Format Check
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
ubuntu64:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'recursive'
|
|
|
|
- name: Install clang format
|
|
run: |
|
|
sudo apt-get install -y clang-format-12
|
|
|
|
- name: Check the Formatting
|
|
run: |
|
|
./formatcode.sh
|
|
./CI/check-format.sh
|