2022-01-31 09:20:15 +00:00
|
|
|
name: Ruby
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
2022-06-13 07:02:05 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-06-13 08:29:52 +00:00
|
|
|
packages:
|
|
|
|
- {}
|
|
|
|
- configure: '--without-all'
|
|
|
|
skip_coverage: 'x'
|
2022-01-31 09:20:15 +00:00
|
|
|
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-06-13 08:29:52 +00:00
|
|
|
run: ./configure ${{matrix.packages.configure}} CFLAGS='-O3'
|
2022-01-31 09:20:15 +00:00
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: install
|
|
|
|
run: sudo make install
|
2022-06-09 01:25:27 +00:00
|
|
|
- working-directory: bindings/ruby
|
2022-02-09 20:03:06 +00:00
|
|
|
name: setup
|
|
|
|
run: ./bin/setup
|
2022-06-09 01:25:27 +00:00
|
|
|
- working-directory: bindings/ruby
|
2022-01-31 09:20:15 +00:00
|
|
|
name: compile
|
|
|
|
run: rake compile
|
2022-06-09 01:25:27 +00:00
|
|
|
- working-directory: bindings/ruby
|
2022-01-31 09:20:15 +00:00
|
|
|
name: test & lint
|
2022-06-13 08:29:52 +00:00
|
|
|
run: SKIP_COVERAGE='${{matrix.packages.skip_coverage}}' rake
|
2022-06-09 01:25:27 +00:00
|
|
|
- working-directory: bindings/ruby
|
2022-01-31 09:20:15 +00:00
|
|
|
name: cppcheck
|
|
|
|
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
|