Skip to content

Commit

Permalink
Pass MSPECOPT from compilers.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 1, 2024
1 parent 522614a commit 6076c16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/actions/compilers/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ inputs:
default: ''
description: >-
Whether to run `make check`
mspecopt:
required: false
default: ''
description: >-
Additional options for mspec.
static_exts:
required: false
Expand Down Expand Up @@ -89,6 +95,7 @@ runs:
--env INPUT_CPPFLAGS='${{ inputs.cppflags }}'
--env INPUT_APPEND_CONFIGURE='${{ inputs.append_configure }}'
--env INPUT_CHECK='${{ inputs.check }}'
--env INPUT_MSPECOPT='${{ inputs.mspecopt }}'
--env INPUT_ENABLE_SHARED='${{ inputs.enable_shared }}'
--env INPUT_STATIC_EXTS='${{ inputs.static_exts }}'
'ghcr.io/ruby/ruby-ci-image:${{ inputs.tag }}'
2 changes: 1 addition & 1 deletion .github/actions/compilers/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ fi
grouped make install
grouped make test-tool
grouped make test-all TESTS="-- $tests"
grouped env CHECK_LEAKS=true make test-spec
grouped env CHECK_LEAKS=true make test-spec MSPECOPT="$INPUT_MSPECOPT"
2 changes: 1 addition & 1 deletion .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:
- { uses: './.github/actions/setup/directories', with: { srcdir: 'src', builddir: 'build', makeup: true } }
- { uses: './.github/actions/compilers', name: '-O0', with: { optflags: '-O0 -march=x86-64 -mtune=generic' } }
# - { uses: './.github/actions/compilers', name: '-O3', with: { optflags: '-O3 -march=x86-64 -mtune=generic', check: true } }
- { uses: './.github/actions/compilers', name: 'gmp', with: { append_configure: '--with-gmp', check: 'ruby/test_bignum.rb' } }
- { uses: './.github/actions/compilers', name: 'gmp', with: { append_configure: '--with-gmp', check: 'ruby/test_bignum.rb', mspecopt: "spec/ruby/core/integer" } }
- { uses: './.github/actions/compilers', name: 'jemalloc', with: { append_configure: '--with-jemalloc' } }
- { uses: './.github/actions/compilers', name: 'valgrind', with: { append_configure: '--with-valgrind' } }
- { uses: './.github/actions/compilers', name: 'coroutine=ucontext', with: { append_configure: '--with-coroutine=ucontext' } }
Expand Down

0 comments on commit 6076c16

Please sign in to comment.