summaryrefslogtreecommitdiff
path: root/.github/workflows/check_dependencies.yml
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-10-19 15:32:39 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-10-21 09:24:47 +0900
commitda25affdacc45dd54a1d4c12a5f8394145811276 (patch)
tree72ebfddce08ad5756d14a9af87134978ee5494d7 /.github/workflows/check_dependencies.yml
parent1c5f44cd728e8c42fd99a74151752e2980e65d0f (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/check_dependencies.yml')
-rw-r--r--.github/workflows/check_dependencies.yml24
1 files changed, 2 insertions, 22 deletions
diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml
index 3439c04f9d..0ad2d5e757 100644
--- a/.github/workflows/check_dependencies.yml
+++ b/.github/workflows/check_dependencies.yml
@@ -2,11 +2,7 @@ name: Check Dependencies
on: [push, pull_request]
jobs:
update-deps:
- strategy:
- matrix:
- os: [ubuntu-20.04]
- fail-fast: true
- runs-on: ${{ matrix.os }}
+ runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Install libraries
@@ -18,28 +14,12 @@ jobs:
run: |
git config --global advice.detachedHead 0
- uses: actions/checkout@v2
- with:
- path: src
- - name: Fixed world writable dirs
- run: |
- chmod -v go-w $HOME $HOME/.config
- sudo chmod -R go-w /usr/share
- sudo bash -c 'IFS=:; for d in '"$PATH"'; do chmod -v go-w $d; done' || :
- - name: Set ENV
- run: |
- echo "JOBS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
- run: autoconf
- working-directory: src
- name: Run configure
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
- working-directory: src
- - name: Run make
- run: make all golf
- working-directory: src
+ - run: make all golf
- run: ruby tool/update-deps --fix
- working-directory: src
- run: git diff --no-ext-diff --ignore-submodules --exit-code
- working-directory: src
- uses: k0kubun/action-slack@v2.0.0
with:
payload: |