mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Run CAPI check separately
This commit is contained in:
parent
7ab8e16b2b
commit
aa173bcef8
10
.github/actions/capiext/action.yml
vendored
10
.github/actions/capiext/action.yml
vendored
@ -4,6 +4,9 @@ inputs:
|
||||
builddir:
|
||||
required: false
|
||||
default: '.'
|
||||
make:
|
||||
required: false
|
||||
default: 'make -s'
|
||||
|
||||
outputs:
|
||||
key:
|
||||
@ -35,10 +38,13 @@ runs:
|
||||
path: ${{ inputs.builddir }}/spec/ruby/optional/capi/ext/
|
||||
key: ${{ steps.config.outputs.key }}
|
||||
|
||||
- name: Force rubyspec CAPI extension binaries up to date
|
||||
- name: Run test-spec with previous CAPI extension binaries
|
||||
shell: bash
|
||||
run: |
|
||||
touch ${{ inputs.builddir }}/spec/ruby/optional/capi/ext/*.$DLEXT
|
||||
touch spec/ruby/optional/capi/ext/*.$DLEXT
|
||||
[ ! -f spec/ruby/optional/capi/ext/\*.$DLEXT ]
|
||||
${{ inputs.make }} SPECOPTS=optional/capi test-spec
|
||||
env:
|
||||
DLEXT: ${{ steps.config.outputs.DLEXT }}
|
||||
working-directory: ${{ inputs.builddir }}
|
||||
if: ${{ steps.cache.outputs.cache-hit }}
|
||||
|
||||
7
.github/workflows/macos.yml
vendored
7
.github/workflows/macos.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
||||
os: macos-14
|
||||
- test_task: check
|
||||
os: macos-15
|
||||
capi_check: true
|
||||
capi_check: capi
|
||||
- test_task: check
|
||||
os: macos-13
|
||||
fail-fast: false
|
||||
@ -164,11 +164,6 @@ jobs:
|
||||
uses: ./.github/actions/capiext
|
||||
with:
|
||||
builddir: build
|
||||
if: ${{ matrix.capi_check }}
|
||||
|
||||
- name: Check with previous CAPI extensions
|
||||
run: |
|
||||
make -s test-spec
|
||||
env:
|
||||
RUBY_TESTOPTS: '-v --tty=no'
|
||||
if: ${{ matrix.capi_check }}
|
||||
|
||||
8
.github/workflows/ubuntu.yml
vendored
8
.github/workflows/ubuntu.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
||||
- test_task: test-bundled-gems
|
||||
- test_task: check
|
||||
os: ubuntu-24.04
|
||||
capi_check: true
|
||||
capi_check: capi
|
||||
# ubuntu-24.04-arm jobs don't start on ruby/ruby as of 2025-09-04
|
||||
#- test_task: check
|
||||
# os: ubuntu-24.04-arm
|
||||
@ -157,11 +157,7 @@ jobs:
|
||||
uses: ./.github/actions/capiext
|
||||
with:
|
||||
builddir: build
|
||||
if: ${{ matrix.capi_check }}
|
||||
|
||||
- name: Check with previous CAPI extensions
|
||||
run: |
|
||||
$SETARCH make -s test-spec
|
||||
make: '$SETARCH make'
|
||||
env:
|
||||
RUBY_TESTOPTS: '-v --tty=no'
|
||||
if: ${{ matrix.capi_check }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user