From 2652c0e9e83e2b7c155f9a2f5fdcb8eacb6b0ecd Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Mon, 4 Dec 2023 18:34:56 -0600 Subject: [PATCH] upload formatting artifacts (#826) --- .github/workflows/lintAndFormat.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/lintAndFormat.yml b/.github/workflows/lintAndFormat.yml index 9a84f227ec..fc437b12d8 100644 --- a/.github/workflows/lintAndFormat.yml +++ b/.github/workflows/lintAndFormat.yml @@ -206,6 +206,14 @@ jobs: git fetch origin main # git clang-format returns an error if changes made? git clang-format origin/main || true + git diff > clang-format.diff + cat clang-format.diff + + - name: Upload clang-format + uses: actions/upload-artifact@v3 + with: + path: clang-format.diff + name: format_diffs - name: Check C/C++ format uses: reviewdog/action-suggester@v1 @@ -221,6 +229,14 @@ jobs: run: | black --exclude python/compiler/aiecc/main.py . || true # black -l 10000 python/compiler/aiecc/main.py || true + git diff > black-format.diff + cat black-format.diff + + - name: Upload black-format + uses: actions/upload-artifact@v3 + with: + path: black-format.diff + name: format_diffs - name: Check Python format if: success() || failure()