diff options
| -rw-r--r-- | .github/actions/capiext/action.yml | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/.github/actions/capiext/action.yml b/.github/actions/capiext/action.yml index 4ec6a27f3f..147c5387b3 100644 --- a/.github/actions/capiext/action.yml +++ b/.github/actions/capiext/action.yml @@ -50,23 +50,34 @@ runs: touch spec/ruby/optional/capi/ext/*.$DLEXT [ ! -f spec/ruby/optional/capi/ext/\*.$DLEXT ] ${{ inputs.make }} SPECOPTS=optional/capi test-spec - rm -f spec/ruby/optional/capi/ext/*.c env: DLEXT: ${{ steps.config.outputs.DLEXT }} working-directory: ${{ inputs.builddir }} if: ${{ steps.cache.outputs.cache-hit }} - - name: Save CAPI extensions - uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 - with: - path: ${{ inputs.builddir }}/spec/ruby/optional/capi/ext/ - key: ${{ steps.config.outputs.key }} + - name: Strip CAPI extensions + id: strip + shell: bash + run: | + rm -f spec/ruby/optional/capi/ext/*.c + [ "$DLEXT" = bundle ] || # separated to .dSYM directories + strip spec/ruby/optional/capi/ext/*.$DLEXT + env: + DLEXT: ${{ steps.config.outputs.DLEXT }} + working-directory: ${{ inputs.builddir }} if: >- ${{true && ! steps.cache.outputs.cache-hit && github.ref_name == 'master' }} + - name: Save CAPI extensions + uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 + with: + path: ${{ inputs.builddir }}/spec/ruby/optional/capi/ext/ + key: ${{ steps.config.outputs.key }} + if: ${{ steps.strip.outcome == 'success' }} + - shell: bash run: | echo "::error::Change from ${prev} detected; bump up ABI version" |
