summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-09-09 17:25:22 +0900
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2024-09-09 19:12:41 +0900
commit391bb55a8ebfd93a49c5c4aac5885c4ae4573a14 (patch)
treeeeb6821fc1cffa45c1e4c73a7ae7b6a14a60f712
parentd7b0f269636749fdae2ba155ba5f9b752aa17341 (diff)
Run just bignum related tests when gmp enabled
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11574
-rw-r--r--.github/workflows/compilers.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index 17361e9b7f..eb345cb830 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -137,7 +137,7 @@ jobs:
- { name: '-O0', env: { optflags: '-O0 -march=x86-64 -mtune=generic' } }
# - { name: '-O3', env: { optflags: '-O3 -march=x86-64 -mtune=generic' }, check: true }
- - { name: gmp, env: { append_configure: '--with-gmp' }, check: true }
+ - { name: gmp, env: { append_configure: '--with-gmp' }, check: 'ruby/test_bignum.rb' }
- { name: jemalloc, env: { append_configure: '--with-jemalloc' } }
- { name: valgrind, env: { append_configure: '--with-valgrind' } }
- { name: 'coroutine=ucontext', env: { append_configure: '--with-coroutine=ucontext' } }
@@ -286,8 +286,10 @@ jobs:
- run: make test-tool
if: ${{ matrix.entry.check }}
- - run: make test-all TESTS='-- ruby -ext-'
+ - run: make test-all TESTS="-- $tests"
if: ${{ matrix.entry.check }}
+ env:
+ tests: ${{ matrix.entry.check == true && 'ruby -ext-' || matrix.entry.check }}
- run: make test-spec
env: