Skip to content

Commit 7c61e1e

Browse files
gmelikovtonyhutter
authored andcommitted
CI: generate ABI files if changed
So commit author can just download them as artifacts and commit. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes openzfs#12379
1 parent 6a49948 commit 7c61e1e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/checkstyle.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,19 @@ jobs:
3232
run: |
3333
make lint
3434
- name: CheckABI
35+
id: CheckABI
3536
run: |
3637
make checkabi
38+
- name: StoreABI
39+
if: failure() && steps.CheckABI.outcome == 'failure'
40+
run: |
41+
make storeabi
42+
- name: Prepare artifacts
43+
if: failure() && steps.CheckABI.outcome == 'failure'
44+
run: |
45+
find -name *.abi | tar -cf abi_files.tar -T -
46+
- uses: actions/upload-artifact@v2
47+
if: failure() && steps.CheckABI.outcome == 'failure'
48+
with:
49+
name: New ABI files (use only if you're sure about interface changes)
50+
path: abi_files.tar

0 commit comments

Comments
 (0)