2022-01-31 04:20:15 -05:00
|
|
|
name: Ruby
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: 3.0
|
|
|
|
- name: dependencies
|
|
|
|
run: sudo apt-get --yes install cppcheck
|
|
|
|
- name: autogen
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: configure
|
2022-02-01 21:26:35 -05:00
|
|
|
run: ./configure CFLAGS='-O3'
|
2022-01-31 04:20:15 -05:00
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: install
|
|
|
|
run: sudo make install
|
|
|
|
- working-directory: pkgs/ruby
|
|
|
|
name: bundle
|
|
|
|
run: bundle install
|
|
|
|
- working-directory: pkgs/ruby
|
|
|
|
name: compile
|
|
|
|
run: rake compile
|
|
|
|
- working-directory: pkgs/ruby
|
|
|
|
name: test & lint
|
|
|
|
run: rake
|
|
|
|
- working-directory: pkgs/ruby
|
|
|
|
name: cppcheck
|
|
|
|
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
|
2022-02-01 01:50:46 -05:00
|
|
|
|
|
|
|
cond:
|
|
|
|
runs-on: ubuntu-latest
|
2022-02-01 03:28:23 -05:00
|
|
|
env:
|
|
|
|
SKIP_COVERAGE: x
|
2022-02-01 01:50:46 -05:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: 3.0
|
|
|
|
- name: dependencies
|
|
|
|
run: sudo apt-get --yes install
|
|
|
|
- name: autogen
|
|
|
|
run: ./autogen.sh
|
|
|
|
- name: configure
|
2022-02-01 21:26:35 -05:00
|
|
|
run: ./configure --without-all CFLAGS='-O3'
|
2022-02-01 01:50:46 -05:00
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: install
|
|
|
|
run: sudo make install
|
|
|
|
- working-directory: pkgs/ruby
|
|
|
|
name: bundle
|
|
|
|
run: bundle install
|
|
|
|
- working-directory: pkgs/ruby
|
|
|
|
name: compile
|
|
|
|
run: rake compile
|
|
|
|
- working-directory: pkgs/ruby
|
|
|
|
name: test & lint
|
|
|
|
run: rake
|