From e35e4d9d94bf14a1946b6980460dffa215c19a0d Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Wed, 16 Oct 2024 13:41:15 +1300 Subject: [PATCH] CI: added some "basic" GitHub Actions. --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 309f0ca14..f4fd04f17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,3 +115,26 @@ jobs: run: | cd build ninja test + code_formatting: + name: Code formatting + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: Check out libCellML + uses: actions/checkout@v4 + - name: Install ClangFormat + run: | + sudo apt update + sudo apt install clang-format + - name: Install CMake and Ninja + uses: lukka/get-cmake@latest + - name: Configure libCellML + run: | + mkdir build + cd build + cmake -G Ninja .. + - name: Code formatting + run: | + cd build + ninja test_clang_format