diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-02-26 13:12:46 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-03-02 14:53:05 +0900 |
commit | 888e736524ad66369a7cbc065af4a1b5ed591c6a (patch) | |
tree | 439606b4929d8e19fae91e3e4302a9f8b643c1ee /.github/workflows/macos.yml | |
parent | e06ad731f03ab83b72c15f951d7a5a3c8ac4323c (diff) |
.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
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2927
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r-- | .github/workflows/macos.yml | 32 |
1 files changed, 14 insertions, 18 deletions
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: | |