2020-09-25 10:09:20 +03:00
|
|
|
name: Check Dependencies
|
2021-10-28 18:02:07 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
2024-05-09 04:45:45 +03:00
|
|
|
- '**/man/*'
|
2021-10-28 18:02:07 +03:00
|
|
|
- '**.md'
|
|
|
|
- '**.rdoc'
|
2022-08-22 12:08:05 +03:00
|
|
|
- '**/.document'
|
2023-12-25 16:12:19 +03:00
|
|
|
- '.*.yml'
|
2021-10-28 18:02:07 +03:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
2024-05-09 04:45:45 +03:00
|
|
|
- '**/man/*'
|
2021-10-28 18:02:07 +03:00
|
|
|
- '**.md'
|
|
|
|
- '**.rdoc'
|
2022-08-22 12:08:05 +03:00
|
|
|
- '**/.document'
|
2023-12-25 16:12:19 +03:00
|
|
|
- '.*.yml'
|
2023-03-28 15:01:44 +03:00
|
|
|
merge_group:
|
2021-10-28 18:02:07 +03:00
|
|
|
|
2021-11-18 16:21:05 +03:00
|
|
|
concurrency:
|
2021-11-21 13:17:27 +03:00
|
|
|
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
|
|
|
|
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
|
2021-11-18 16:21:05 +03:00
|
|
|
|
2022-11-28 10:50:41 +03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-09-25 10:09:20 +03:00
|
|
|
jobs:
|
|
|
|
update-deps:
|
2020-10-21 05:03:12 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-18 11:39:28 +03:00
|
|
|
os: [ubuntu-20.04]
|
2020-10-21 05:03:12 +03:00
|
|
|
fail-fast: true
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2020-10-21 05:03:12 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2023-07-13 07:17:44 +03:00
|
|
|
if: >-
|
|
|
|
${{!(false
|
|
|
|
|| contains(github.event.head_commit.message, '[DOC]')
|
2024-04-08 15:26:11 +03:00
|
|
|
|| contains(github.event.head_commit.message, 'Document')
|
2023-07-13 07:17:44 +03:00
|
|
|
|| contains(github.event.pull_request.title, '[DOC]')
|
2024-04-08 15:26:11 +03:00
|
|
|
|| contains(github.event.pull_request.title, 'Document')
|
|
|
|
|| contains(github.event.pull_request.labels.*.name, 'Document')
|
2024-08-22 10:38:50 +03:00
|
|
|
|| (github.event_name == 'push' && github.event.pull_request.user.login == 'dependabot[bot]')
|
2023-07-13 07:17:44 +03:00
|
|
|
)}}
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2020-09-25 10:09:20 +03:00
|
|
|
steps:
|
2024-09-29 15:38:14 +03:00
|
|
|
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2023-06-29 04:02:23 +03:00
|
|
|
- uses: ./.github/actions/setup/ubuntu
|
|
|
|
if: ${{ contains(matrix.os, 'ubuntu') }}
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2023-06-29 11:02:49 +03:00
|
|
|
- uses: ./.github/actions/setup/macos
|
|
|
|
if: ${{ contains(matrix.os, 'macos') }}
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2023-06-30 16:19:35 +03:00
|
|
|
- uses: ./.github/actions/setup/directories
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2024-07-29 05:54:02 +03:00
|
|
|
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
|
2024-02-16 10:13:45 +03:00
|
|
|
with:
|
|
|
|
ruby-version: '3.0'
|
|
|
|
bundler: none
|
|
|
|
|
2020-09-25 10:09:20 +03:00
|
|
|
- name: Run configure
|
|
|
|
run: ./configure -C --disable-install-doc --disable-rubygems --with-gcc 'optflags=-O0' 'debugflags=-save-temps=obj -g'
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2020-10-19 09:32:39 +03:00
|
|
|
- run: make all golf
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2024-09-07 15:43:38 +03:00
|
|
|
- run: ./goruby -veh
|
|
|
|
|
2020-09-25 10:09:20 +03:00
|
|
|
- run: ruby tool/update-deps --fix
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2020-09-25 10:09:20 +03:00
|
|
|
- run: git diff --no-ext-diff --ignore-submodules --exit-code
|
2023-07-03 16:02:43 +03:00
|
|
|
|
2023-06-28 17:17:54 +03:00
|
|
|
- uses: ./.github/actions/slack
|
2020-09-25 10:09:20 +03:00
|
|
|
with:
|
2023-06-28 17:17:54 +03:00
|
|
|
label: ${{ matrix.os }} / Dependencies need to update
|
2020-09-25 10:09:20 +03:00
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
2023-09-21 06:17:01 +03:00
|
|
|
if: ${{ failure() }}
|