2020-11-02 15:26:32 +09:00
|
|
|
name: BASERUBY Check
|
|
|
|
|
2021-10-29 00:02:07 +09:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rdoc'
|
2022-10-18 17:05:56 +09:00
|
|
|
- '**/.document'
|
|
|
|
- '**.[1-8]'
|
|
|
|
- '**.ronn'
|
2021-10-29 00:02:07 +09:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'doc/**'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rdoc'
|
2022-10-18 17:05:56 +09:00
|
|
|
- '**/.document'
|
|
|
|
- '**.[1-8]'
|
|
|
|
- '**.ronn'
|
2020-11-02 15:26:32 +09:00
|
|
|
|
2021-11-18 22:21:05 +09:00
|
|
|
concurrency:
|
2021-11-21 19:17:27 +09: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 22:21:05 +09:00
|
|
|
|
2020-11-02 15:26:32 +09:00
|
|
|
jobs:
|
|
|
|
baseruby:
|
|
|
|
name: BASERUBY
|
|
|
|
runs-on: ubuntu-20.04
|
2022-06-19 11:05:31 +09:00
|
|
|
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') }}
|
2020-11-02 15:26:32 +09:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
ruby:
|
|
|
|
- ruby-2.2
|
2020-12-10 17:41:39 +09:00
|
|
|
# - ruby-2.3
|
|
|
|
# - ruby-2.4
|
|
|
|
# - ruby-2.5
|
|
|
|
# - ruby-2.6
|
2022-01-19 13:43:52 +09:00
|
|
|
# - ruby-2.7
|
2021-09-09 21:57:12 +09:00
|
|
|
- ruby-3.0
|
2022-01-19 13:43:52 +09:00
|
|
|
- ruby-3.1
|
2020-11-02 15:26:32 +09:00
|
|
|
|
|
|
|
steps:
|
2022-03-24 11:38:59 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-24 11:32:46 +00:00
|
|
|
- uses: actions/cache@v3
|
2021-12-02 22:21:20 +09:00
|
|
|
with:
|
|
|
|
path: .downloaded-cache
|
|
|
|
key: downloaded-cache
|
2020-11-02 15:26:32 +09:00
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: ${{ matrix.ruby }}
|
|
|
|
bundler: none
|
2021-10-25 14:05:30 +09:00
|
|
|
- run: echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
2022-03-23 17:21:21 +09:00
|
|
|
- run: sudo apt-get install build-essential autoconf bison libyaml-dev
|
2021-04-08 20:36:58 +09:00
|
|
|
- run: ./autogen.sh
|
2020-11-02 15:26:32 +09:00
|
|
|
- run: ./configure --disable-install-doc
|
2021-10-25 14:05:30 +09:00
|
|
|
- run: make common-srcs
|
|
|
|
- run: make incs
|
|
|
|
- run: make all
|
|
|
|
- run: make test
|
2022-10-25 17:53:08 -07:00
|
|
|
- uses: ruby/action-slack@v3.0.0
|
2020-11-02 15:26:32 +09:00
|
|
|
with:
|
|
|
|
payload: |
|
|
|
|
{
|
|
|
|
"ci": "GitHub Actions",
|
|
|
|
"env": "${{ github.workflow }} / BASERUBY @ ${{ matrix.ruby }}",
|
|
|
|
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
|
|
|
|
"commit": "${{ github.sha }}",
|
2022-10-25 17:53:08 -07:00
|
|
|
"branch": "${{ github.ref_name }}"
|
2020-11-02 15:26:32 +09:00
|
|
|
}
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
|
2021-08-02 11:39:38 +09:00
|
|
|
if: ${{ failure() && github.event_name == 'push' }}
|