From 888e736524ad66369a7cbc065af4a1b5ed591c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 26 Feb 2020 13:12:46 +0900 Subject: .github: make use of working-directory One can specify working directory of a step, no by `cd foo` inside of the run. See also https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun --- .github/workflows/macos.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to '.github/workflows/macos.yml') diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index dcfc0bd587..9c3662232d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -29,35 +29,31 @@ jobs: - name: Install libraries run: | export WAITS='5 60' - cd src tool/travis_retry.sh brew upgrade tool/travis_retry.sh brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline + working-directory: src - name: Set ENV run: | echo '::set-env name=JOBS::'-j$((1 + $(sysctl -n hw.activecpu))) - - name: Autoconf - run: | - cd src - autoconf - - name: Configure - run: | - mkdir build - cd build - ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) - - name: Make - run: make -C build $JOBS - - name: Extract gems - run: make -C build update-gems extract-gems + - run: autoconf + working-directory: src + - run: mkdir build + - run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) + working-directory: build + - run: make $JOBS + working-directory: build + - run: make update-gems extract-gems + working-directory: build if: matrix.test_task == 'check' - - name: Tests - run: make -C build $JOBS -s ${{ matrix.test_task }} + - run: make $JOBS -s ${{ matrix.test_task }} + working-directory: build env: RUBY_TESTOPTS: "-q --tty=no" # Remove minitest from TEST_BUNDLED_GEMS_ALLOW_FAILURES if https://github.com/seattlerb/minitest/pull/798 is resolved # rss needs to add workaround for the non rexml environment TEST_BUNDLED_GEMS_ALLOW_FAILURES: "minitest,xmlrpc,rss,rexml" - - name: Leaked Globals - run: make -C build -s leaked-globals + - run: make -s leaked-globals + working-directory: build - uses: k0kubun/action-slack@v2.0.0 with: payload: | -- cgit v1.2.3