[前][次][番号順一覧][スレッド一覧]

ruby-changes:57351

From: Kazuhiro <ko1@a...>
Date: Wed, 28 Aug 2019 10:08:20 +0900 (JST)
Subject: [ruby-changes:57351] Kazuhiro NISHIYAMA: 108dbb389b (master): Use JOBS again like macos.yml

https://git.ruby-lang.org/ruby.git/commit/?id=108dbb389b

From 108dbb389b0a47199c8d0f271c34a22dd2406f2e Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Wed, 28 Aug 2019 09:45:31 +0900
Subject: Use JOBS again like macos.yml


diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 5e9304d..e1cfa2d 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -36,13 +36,17 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L36
         run: |
           chmod go-w $HOME
           sudo chmod -R go-w /usr/share
+      - name: Set ENV
+        run: |
+          echo '##[set-env name=JOBS]'-j$((1 + $(nproc --all)))
       - run: autoconf
       - name: configure
         run: ./configure -C --disable-install-doc
-      - run: make -j$((1 + $(nproc --all)))
+      - run: make $JOBS
       - name: Tests
-        run: make -s TESTOPTS="-j$((1 + $(nproc --all))) -q --tty=no" ${{ matrix.test_task }}
+        run: make -s ${{ matrix.test_task }}
         env:
+          TESTOPTS: "$JOBS -q --tty=no"
           MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
         if: matrix.test_task != 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
       # test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]