From 4e8a639d5f4ab9a2d7e77a98c00313cd4da19274 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Wed, 21 Jul 2021 01:21:00 +0300 Subject: [PATCH] CI: generate ABI files if changed So commit author can just download them as artifacts and commit. Reviewed-by: Ryan Moeller Reviewed-by: John Kennedy Signed-off-by: George Melikov Closes #12379 --- .github/workflows/checkstyle.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/checkstyle.yaml b/.github/workflows/checkstyle.yaml index 960ed264e5..2e79f9569b 100644 --- a/.github/workflows/checkstyle.yaml +++ b/.github/workflows/checkstyle.yaml @@ -31,6 +31,20 @@ jobs: run: | make lint - name: CheckABI + id: CheckABI run: | make -j$(nproc) make checkabi + - name: StoreABI + if: failure() && steps.CheckABI.outcome == 'failure' + run: | + make storeabi + - name: Prepare artifacts + if: failure() && steps.CheckABI.outcome == 'failure' + run: | + find -name *.abi | tar -cf abi_files.tar -T - + - uses: actions/upload-artifact@v2 + if: failure() && steps.CheckABI.outcome == 'failure' + with: + name: New ABI files (use only if you're sure about interface changes) + path: abi_files.tar