aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Melikov <mail@gmelikov.ru>2021-07-20 22:21:00 +0000
committerGitHub <noreply@github.com>2021-07-20 22:21:00 +0000
commitbc93935ef0294e559bd0b46809a33c717070a8ce (patch)
tree883f6bf6c1d237ca50a54bf908a3e38763a1f597
parenta7bd20e309a4b45b18b1da8e379f5826debe4870 (diff)
downloadsrc-bc93935ef0294e559bd0b46809a33c717070a8ce.tar.gz
src-bc93935ef0294e559bd0b46809a33c717070a8ce.zip
CI: generate ABI files if changed
So commit author can just download them as artifacts and commit. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: George Melikov <mail@gmelikov.ru> Closes #12379
-rw-r--r--.github/workflows/checkstyle.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/checkstyle.yaml b/.github/workflows/checkstyle.yaml
index 8dcd5047a748..33276d269092 100644
--- a/.github/workflows/checkstyle.yaml
+++ b/.github/workflows/checkstyle.yaml
@@ -32,5 +32,19 @@ jobs:
run: |
make lint
- name: CheckABI
+ id: CheckABI
run: |
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