Skip to content

Commit af76568

Browse files
nobuk0kubun
authored andcommitted
Run just bignum related tests when gmp enabled
1 parent 4608ef8 commit af76568

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/compilers.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
- { name: '-O0', env: { optflags: '-O0 -march=x86-64 -mtune=generic' } }
144144
# - { name: '-O3', env: { optflags: '-O3 -march=x86-64 -mtune=generic' }, check: true }
145145

146-
- { name: gmp, env: { append_configure: '--with-gmp' }, check: true }
146+
- { name: gmp, env: { append_configure: '--with-gmp' }, check: 'ruby/test_bignum.rb' }
147147
- { name: jemalloc, env: { append_configure: '--with-jemalloc' } }
148148
- { name: valgrind, env: { append_configure: '--with-valgrind' } }
149149
- { name: 'coroutine=ucontext', env: { append_configure: '--with-coroutine=ucontext' } }
@@ -275,8 +275,10 @@ jobs:
275275
- run: make test-tool
276276
if: ${{ matrix.entry.check }}
277277

278-
- run: make test-all TESTS='-- ruby -ext-'
278+
- run: make test-all TESTS="-- $tests"
279279
if: ${{ matrix.entry.check }}
280+
env:
281+
tests: ${{ matrix.entry.check == true && 'ruby -ext-' || matrix.entry.check }}
280282

281283
- run: make test-spec
282284
env:

0 commit comments

Comments
 (0)