diff options
| author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-10-19 15:32:39 +0900 |
|---|---|---|
| committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-10-21 09:24:47 +0900 |
| commit | da25affdacc45dd54a1d4c12a5f8394145811276 (patch) | |
| tree | 72ebfddce08ad5756d14a9af87134978ee5494d7 /.github/workflows/macos.yml | |
| parent | 1c5f44cd728e8c42fd99a74151752e2980e65d0f (diff) | |
.github: reduce copy&paste
Found that we can set default working directory for github actions.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3675
Diffstat (limited to '.github/workflows/macos.yml')
| -rw-r--r-- | .github/workflows/macos.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 34757ea193..f0355258f1 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -11,6 +11,8 @@ jobs: GITPULLOPTIONS: --no-tags origin ${{github.ref}} if: "!contains(github.event.head_commit.message, '[ci skip]')" steps: + - run: mkdir build + working-directory: - name: Disable Firewall run: | sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off @@ -32,20 +34,14 @@ jobs: echo "JOBS=-j$((1 + $(sysctl -n hw.activecpu)))" >> $GITHUB_ENV - run: autoconf working-directory: src - - run: mkdir build - name: Run configure 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 incs - working-directory: build - run: make $JOBS - working-directory: build - run: make prepare-gems - working-directory: build if: matrix.test_task == 'check' - run: make $JOBS -s ${{ matrix.test_task }} timeout-minutes: 60 - working-directory: build env: RUBY_TESTOPTS: "-q --tty=no" TEST_BUNDLED_GEMS_ALLOW_FAILURES: "rexml" @@ -62,3 +58,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' + +defaults: + run: + working-directory: build |
