Test Ruby conditional compilation

This commit is contained in:
Alex Kotov 2022-02-01 11:50:46 +05:00 committed by GitHub
parent 80ccc1caaa
commit 04f7b2938b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

View File

@ -36,3 +36,30 @@ jobs:
- working-directory: pkgs/ruby
name: cppcheck
run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability .
cond:
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
- name: autogen
run: ./autogen.sh
- name: configure
run: ./configure --without-all CFLAGS='-O3 -fPIC'
- 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