From ba0e3ea130357f311ba9b66fc80213adde5eab01 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 7 Nov 2021 13:35:40 +0900 Subject: [PATCH] [MSWin] Pass TESTOPTS via RUBY_TESTOPTS --- .github/workflows/windows.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d71ddd1b8c..4a90f56752 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -84,6 +84,7 @@ jobs: call %VCVARS% set TMP=%USERPROFILE%\AppData\Local\Temp set TEMP=%USERPROFILE%\AppData\Local\Temp + set /a TEST_JOBS=(15 * %NUMBER_OF_PROCESSORS% / 10) > nul set | C:\msys64\usr\bin\sort > new.env C:\msys64\usr\bin\comm -13 old.env new.env >> %GITHUB_ENV% del *.env @@ -97,10 +98,10 @@ jobs: YACC: win_bison - run: nmake test timeout-minutes: 5 - - name: nmake test-all + - run: nmake test-all + env: + RUBY_TESTOPTS: -j${{env.TEST_JOBS}} --job-status=normal timeout-minutes: 60 - run: | - nmake test-all TESTOPTS="-j%NUMBER_OF_PROCESSORS% --job-status=normal" continue-on-error: ${{ matrix.continue-on-error || false }} - run: nmake test-spec timeout-minutes: 10