From 2565900f904934a9e0f7f615d3407a1e83783a39 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Thu, 18 May 2023 23:32:16 +0300 Subject: [PATCH] Fix clang-format args Looks like clang-format in Ubuntu does not recognize glob pattern as macOS does. Previous solution without xargs reported status code of find itself, not clang-format. --- .github/workflows/ci-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 63dcbb5..492e190 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -41,7 +41,7 @@ jobs: uses: actions/checkout@v3 - name: clang-format - run: clang-format --dry-run --Werror src/**/*.cc src/**/*.h + run: find src -type f -name \*.cc -o -name \*.h | xargs clang-format --dry-run --Werror android: name: Android