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
This commit is contained in:
George Melikov 2021-07-21 01:21:00 +03:00 committed by Tony Hutter
parent 8009f02748
commit 4e8a639d5f
1 changed files with 14 additions and 0 deletions

View File

@ -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