From 2d5a486f449cee34c72cd68eafcdb438e6a7907b Mon Sep 17 00:00:00 2001 From: Curve Date: Thu, 23 May 2024 19:14:26 +0200 Subject: [PATCH] refactor(ci): update format command --- .github/workflows/format.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 46e035fc..37d86be0 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -15,12 +15,7 @@ jobs: - name: 📋 Install Dependencies run: pip install -U cmakelang - - name: 🏗️ Format - run: ./format-project.sh - - - name: 🔍 Check changes + - name: 🔍 Check Format run: | - if [[ $(git diff-index --name-only --exit-code HEAD) ]]; then - git diff - exit -1 - fi + cmake -B build + cmake --build build --target format-check