Skip to content

Commit 0dbf3c0

Browse files
committed
Show annotation
1 parent 0b264a2 commit 0dbf3c0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/actions/capiext/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ runs:
3030
*+*) key=capiexts-${arch}-${ruby_version};;
3131
*) key=;;
3232
esac
33+
echo version=$ruby_version >> $GITHUB_OUTPUT
3334
echo key=$key >> $GITHUB_OUTPUT
3435
echo DLEXT=$DLEXT >> $GITHUB_OUTPUT
3536
working-directory: ${{ inputs.builddir }}
@@ -43,6 +44,7 @@ runs:
4344
if: ${{ steps.config.outputs.key }}
4445

4546
- name: Run test-spec with previous CAPI extension binaries
47+
id: check
4648
shell: bash
4749
run: |
4850
touch spec/ruby/optional/capi/ext/*.$DLEXT
@@ -52,3 +54,10 @@ runs:
5254
DLEXT: ${{ steps.config.outputs.DLEXT }}
5355
working-directory: ${{ inputs.builddir }}
5456
if: ${{ steps.cache.outputs.cache-hit }}
57+
58+
- shell: bash
59+
run: |
60+
echo "::error::Change from ${prev} detected; bump up ABI version"
61+
env:
62+
prev: ${{ steps.config.outputs.version }}
63+
if: ${{ always() && steps.check.outcome == 'failure' }}

0 commit comments

Comments
 (0)