mirror of
https://github.com/tailix/libkernaux.git
synced 2024-11-13 11:04:27 -05:00
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Ruby
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
debug: ['--disable-debug', '--enable-debug']
|
|
packages:
|
|
- configure: ''
|
|
- configure: '--without-all'
|
|
skip_coverage: 'x'
|
|
- configure: '--without-all --with-ntoa'
|
|
skip_coverage: 'x'
|
|
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
|
|
run: ./configure ${{matrix.debug}} ${{matrix.packages.configure}} CFLAGS='-O3'
|
|
- name: make
|
|
run: make
|
|
- name: install
|
|
run: sudo make install
|
|
- name: ldconfig
|
|
run: sudo ldconfig
|
|
- working-directory: bindings/ruby
|
|
name: setup
|
|
run: ./bin/setup
|
|
- working-directory: bindings/ruby
|
|
name: compile
|
|
run: rake compile
|
|
- working-directory: bindings/ruby
|
|
name: test & lint
|
|
run: SKIP_COVERAGE='${{matrix.packages.skip_coverage}}' rake
|
|
- working-directory: bindings/ruby
|
|
name: cppcheck
|
|
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
|